Deepu M

Access Token not getting

6 posts in this topic

Hi

We got the Oauth verifier from the call back url and used this Oauth verifier in the Access token request.But we failed to get the access token.

Our call back URL looks like

https://sandbox.evernote.com/Home.action?settings/index.php?action=oauthCallback&oauth_token="XXXXX"&oauth_verifier=566723FE34B1EDF2608D2BCB1FDAB4DC#st=p&n=8c7f2104-1d03-481f-91fc-1c79cc9bac93

we just confused with this Oauth verifier ,how many of the portion need to be extracted for getting the correct Oauth verifier or need to use the entire one.We tried some trial & error methods ,but still unable to get the access token.

we are following the instructions from the http://dev.evernote.com/documentation/cloud/chapters/Authentication.php site. In this site only few letters are passed as Oauth verifier.

Please help us to solve this issue.

Share this post


Link to post

Hi,

You have to pass the entire string as you get from the previous step.

Share this post


Link to post

Hi

I tried the oauth verifier as you suggested.The oauth verifier contains some characters that need to be URLencoded,that also done before attaching to the access token URL.

My access token request looks like below.Iam using the same hasing code that generated signature for the temp token request URL.Iam getting the temp token & temp token secret successfully.

I used the consumer key & temp token secret for genarating the signature.

https://sandbox.evernote.com/oauth?oauth_consumer_key="YYYY"&oauth_nonce=147553&oauth_signature="ZZZZZ"&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1359111377&oauth_token="XXXXXX"&oauth_verifier=57B93E25A472F9FC78B8F4906DAA0401%23st%3Dp%26n%3D8c7f2104-1d03-481f-91fc-1c79cc9bac93.

I registered my consumer key with sandbox production service.Is ther any thing else to do for getting the access token.

Please help me to solve this issue.

Thanks & regards

Deepu M

Share this post


Link to post

I checked your consumer key and it's valid on sandbox.

Could you provide your code snippet?

Share this post


Link to post

Hi

Iam attaching the code snippet in which the GetAccessToken () is not returning the access token. I am used HMAC-SHA1 for generating signature for temp token request, but for the access token request, I tried both PLAINTEXT and HMAC-SHA1.I am getting the 401 error.some evernote forum notes shows that PLAINTEXT is the signature method used in Access token requests.

Please help me to solve this issue

Deepu M

code_snippet_contains_some_portions.txt

Share this post


Link to post

I'm not familiar with the language you code but I found that the oauth_verifier in your /oauth URL in your previous comment seems strange.


57B93E25A472F9FC78B8F4906DAA0401#st=p&n=8c7f2104-1d03-481f-91fc-1c79cc9bac93

When I tried, the oauth verifier looked like


2B9563272FF53BD9B5BFFB8553B350BD

Could you review your code?

Share this post


Link to post