CodyBugstein
CodyBugstein

Reputation: 23322

Cannot connect to Twitter API from Postman

I do not understand. I am doing everything I am supposed to.

I have created an app in Twitter, generate the OAuth info, and now I'm trying to make some requests from Postman. But I am getting this error every singe time:

{
  "errors": [
    {
      "code": 32,
      "message": "Could not authenticate you."
    }
  ]
}

I have tried several different ways, for example using the Oauth feature in Postman - as described in this answer, just using a plain Authorization header, etc. However nothing is working

Has anyone had a similar experience or know how to fix this?

Twitter Postman API

Upvotes: 4

Views: 2407

Answers (1)

CodyBugstein
CodyBugstein

Reputation: 23322

I got it working with the following steps:

  • I went to https://dev.twitter.com/oauth/tools/signature-generator where I typed in the query I wanted to make and then clicked Get OAuth Signature.

Twitter OAuth

  • Then in Postman, copy in the URL you generated an OAuth token for, and then copy the entire Authorization Header you generated.
  • In Postman, click Bulk Edit and paste in the authorization header you copied

Postman bulk edit

That's it.

Click Send

Upvotes: 3

Related Questions