Reputation: 285
I want to test the Twitter API for an app in the future. I was trying to test it with Postman but I get this error all the time.
"code": 32,
"message": "Could not authenticate you."
I made an new app from my developers account and put all the generated tokens into Postman like this:
My parameters are the same like this screenshot: (with the correct tokens)
Do I need to check something important? I hope someone has already faced this problem or just can help me with this.
Upvotes: 22
Views: 36803
Reputation: 610
I had troubles encoding my oauth_callback
param, fixing this helped.
Upvotes: 0
Reputation: 1008
Another thing to check is the !
character in the status that's being posted. Ensure it's encoded correctly.
See here for more details: https://groups.google.com/d/msg/google-appengine/6ILDt39anbs/gEwMVBNJLkYJ
Upvotes: 1
Reputation: 5001
For anyone still having issues...
My problem was that the Content-Type: application/x-www-form-urlencoded
header was not set for my POST request when testing with Postman. Once I added that, all was well.
Upvotes: 6
Reputation: 3011
Error 32 "Could not authenticate you" can also happen when the content of the tweet triggers the Twitter censorship filter.
Upvotes: 7
Reputation: 750
Under the "Authorization" tab in Postman, choose "Request Headers" from the "Add authorization data to:" drop down.
Useful reference: https://developer.twitter.com/en/docs/basics/authentication/guides/authorizing-a-request.html
Upvotes: 37