Hi Alex,

First thing that I see wrong here is that the oauth_token you are specified
doesn't look like an access token that we serve. Our access tokens tend to
begin with an integer (your user id), followed by a dash, and then
semi-random characters. You might be using your oauth_token_secret as your
oauth_token.

Taylor

On Fri, Dec 10, 2010 at 4:33 AM, Alex Nikolaev <[email protected]> wrote:

> Good day everyone.
>
> Problem:
> I can't perform "http://api.twitter.com/1/account/
> verify_credentials.xml" after getting access token and access token
> secret via OAuth. I'm getting "401 Unauthorized" error with message
> "Could not authenticate with OAuth".
>
> I've triple-checked all the params, read docs, googled till my fingers
> bleed, tried different variants (POST instead of GET, params in the
> request url).
>
> I suppose, that is not a problem of my perl module Net::OAuth, because
> i can get request tokens, i can exchange them for access tokens - no
> problem. So request signing seems to be ok. Also, i checked signature
> generation - that seems to be ok too.
>
> So, i'm doing GET request to:
>
> http://api.twitter.com/1/account/verify_credentials.xml
>
> With Authorization header:
>
> OAuth
>
> oauth_consumer_key="zqOQIgnviRjNDuGIdHAA",oauth_nonce="1997904",oauth_signature="aSf2zj8xfjXcN9z
> %2B04eOwFd8fKk%3D",oauth_signature_method="HMAC-
>
> SHA1",oauth_timestamp="1291981333",oauth_token="jxmgnF4m2HB7IP9RbylyyF7gaZuRXj8YF1eVUIDSLrk",oauth_version="1.0"
>
> and i get:
> 401 Unauthorized
> <?xml version="1.0" encoding="UTF-8"?>
> <hash>
>  <error>Could not authenticate with OAuth.</error>
>  <request>/1/account/verify_credentials.xml</request>
> </hash>
>
> Can anybody help me and point me, what am i doing wrong?
> Thanks in advance.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to