Created
July 3, 2013 01:11
-
-
Save flakd/5914694 to your computer and use it in GitHub Desktop.
Get current user's info from Twitter API http://stackoverflow.com/questions/3128323/get-current-users-info-from-twitter-api
This file contains hidden or 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
| 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