mrjones / oauth

OAuth 1.0 implementation in go (golang).
http://www.mrjon.es
MIT License
269 stars 119 forks source link

Twitter example doesn't work #41

Closed tyrannosaurus-becks closed 9 years ago

tyrannosaurus-becks commented 9 years ago

In the Twitter example, it shows how to upgrade a requestToken to an accessToken here.

When I test that method, I receive the following error: Missing oauth_token in response. Full response body: 'ok'.

I checked that my requestToken and verificationCode in the method are valid. I also pointed a test request at requestb.in to see what the request was sending. Here's the full request that's sent: screenshot from 2015-10-19 16 06 56

Note that the raw body is "None". I believe the issue is that in Step 3 of Twitter's oauth instructions, it wants the oauth_verifier as part of the request body like this: oauth_verifier=uw7NjWHT6OJ1MpJOXsHfNxoAhPKpgI8BlYDhxEjIBY.

I may dig in and fix this, but in the meantime or if I don't, I wanted to let you folks know. Thank you!

tyrannosaurus-becks commented 9 years ago

I think this is my error. The oauth_verifier should be part of the URL. I'll close this and reopen it if needed.