Skip to content

Instantly share code, notes, and snippets.

@flakd
Created July 3, 2013 01:11
Show Gist options
  • Select an option

  • Save flakd/5914694 to your computer and use it in GitHub Desktop.

Select an option

Save flakd/5914694 to your computer and use it in GitHub Desktop.
Using oAuth you are able to make calls to get user info from your TwitterOAuth object.
e.g if $oauth = new TwitterOAuth([keys here])
$credentials = $oauth->get('account/verify_credentials');
echo "Connected as @" . $credentials->screen_name ."\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment