Options

invalid signature error always.help me, detailed screenshot attached

sujit1779sujit1779 Registered Users Posts: 46 Big grins
Hi

I am not able to get any results, each time I am getting error "invalid signature". I have gone crazy so I am giving all info in the hope that someone may help me out. I have attached screenshots for better understanding. Can anyone point me what error I am doing?

app name : picbackman
key: 9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt
secret: fed2e1859c773ac3192e25a7e926fd5e

===============================
Step 1 >

I enter this in browser

http://api.smugmug.com/services/oauth/getRequestToken.mg?oauth_consumer_key=9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt&oauth_nonce=7254741&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324547272&oauth_signature=DxaHPB8PKk+MEyP+z6b0GS6BPmU=

In response I get this
oauth_token=831b3a887399dd53152bb3c6c6fb7442&oauth_token_secret=5c90b1277d708d3f5e19868f823aab2e2cf99799d2b2307c9d9b33ed441235af

ff8dtu.jpg

===========================================

Step 2 :

https://secure.smugmug.com/services/oauth/authorize.mg?oauth_consumer_key=9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt&oauth_nonce=7254741&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324547272&oauth_token=831b3a887399dd53152bb3c6c6fb7442&oauth_signature=9oL6iGwoBoOYpTCAdWFq13VoKOU=&Access=Full&Permissions=Add


http://www.picbackman.com/?oauth_consumer_key=9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt&oauth_nonce=7254741&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324547272&oauth_token=831b3a887399dd53152bb3c6c6fb7442&oauth_signature=9oL6iGwoBoOYpTCAdWFq13VoKOU=&Access=Full&Permissions=Add

2qa4nxs.jpg

245k65z.jpg
====================================================

Step 3 >

http://api.smugmug.com/services/oauth/getAccessToken.mg?oauth_consumer_key=9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt&oauth_nonce=7254741&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324547272&oauth_token=831b3a887399dd53152bb3c6c6fb7442&oauth_signature=FDKlldGxQvTlF7F5cmSLs86cgzY=

In response I get

oauth_token=610803fc804ae4842deefac0c91a3282&oauth_token_secret=eebbeaae56ff00566ff0ae63ebcaea562c572c7fc7b70c6414a57140164839ed

qxt4hz.jpg

Questing : is the above token a "ACCCESS TOKEN" (one which never expires)?

=================================
Step 4 : now I am trying to call one of the API's say (smugmug.users.getTree)

this is the url I am putting in browser

https://secure.smugmug.com/services/api/rest/1.3.0/?method=smugmug.featured.albums.get&oauth_consumer_key=9kvIlPHqB0j5Un4HNnkBKKrkxUkx1pLt&oauth_nonce=7254741&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324547272&oauth_token=610803fc804ae4842deefac0c91a3282&oauth_signature=IGSyYO+vH93wZjDM0WQcHjECxcQ=

first it gives timestamp error,
2449zsh.jpg

then i change timestamp and nonce, but i get "invalid signature" error.
2d99s0x.jpg


=========================================

m9c86t.jpg

can someone help me out, I need this. I have been trying for the last 2 days. What error I am doing?

Thanks.

Comments

  • Options
    masterghimasterghi Registered Users Posts: 12 Big grins
    edited December 28, 2011
    Hi

    I am seeing something a bit different: I am able to get the request token but I am unable to "exchange" it for an access token.

    sujit1779 - are you able to get an access token now?

    Is there any more documentation about what type of request one must make for the getAccessToken.mg? Is it POST/GET?
    Should one use the getAccessToken.mg or the API methods smugmug.auth.getRequestToken and [smugmug.auth.getAccessToken?

    Thanks
Sign In or Register to comment.