Created
July 8, 2013 16:45
-
-
Save AbhishekGhosh/5950435 to your computer and use it in GitHub Desktop.
Twitter client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tldlib/tmhOAuth.php'; | |
require 'tldlib/tmhUtilities.php'; | |
// include user keys | |
require 'tldlib/keys/tweetledee_keys.php'; | |
// include Geoff Smith's utility functions | |
require 'tldlib/tldUtilities.php'; | |
// create the OAuth object | |
///* | |
$tmhOAuth = new tmhOAuth(array( | |
'consumer_key' => $my_consumer_key, | |
'consumer_secret' => $my_consumer_secret, | |
'user_token' => $my_access_token, | |
'user_secret' => $my_access_token_secret, | |
'curl_ssl_verifypeer' => false | |
)); | |
//*/ | |
// request the user information | |
$code = $tmhOAuth->user_request(array( | |
'url' => $tmhOAuth->url('1.1/account/verify_credentials') | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment