Search code examples
twitter

Get current user's info from Twitter API


I am building a Twitter app (with oAuth) and I cannot find any info on how I can get the current user's info.

By current user, I mean the user which granted my app permissions and for whom the app is making the requests to the API.

Any suggestions?


Solution

  • It was actually "account/verify_credentials" as seen here:

    https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials.html