Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- here is the complete code that u can check from ur server !!
- This s not working.. and i don know why !!
- i hav included all the credentilas..
- Kindly check the code from ur server side and let me know what to do next !!
- <?php
- include 'EpiCurl.php';
- include 'EpiOAuth.php';
- include 'EpiTwitter.php';
- $consumer_key = '';
- $consumer_secret = '';
- $twitterObj = new EpiTwitter($consumer_key,$consumer_secret);
- $oauth_token='';
- $oauth_token_secret='';
- $twitterObj->setToken($oauth_token, $oauth_token_secret);
- $twitterInfo= $twitterObj->get_accountVerify_credentials();
- $twitterInfo->response;
- echo "Your twitter username is {$twitterInfo->screen_name} and your
- profile picture is <img src=\"{$twitterInfo->profile_image_url}\">";
- //$message Status update
- $status = 'Testing API..';
- $update_status = $twitterObj->post_statusesUpdate(array('status' => $status));
- $update_status->response;
- echo" Default tweet posted ( Testing API.. )";
- ?>
- The included files are here for download
- http://www.jaisenmathai.com/files/jaisenmathai_com_oauth_test.zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement