Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created July 8, 2013 16:45
Show Gist options
  • Save AbhishekGhosh/5950435 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/5950435 to your computer and use it in GitHub Desktop.
Twitter client
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