Working with OAuth API after Authentication

bmcbridebmcbride USARegistered Users Posts: 5 Big grins
I am able to get the access token and secret from the API, however, once I have that, I get an error when trying to use any functions.

If we make the following call:!authuser?oauth_callback=oob&oauth_consumer_key=MY_KEY&oauth_nonce=7CA2361DC81&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1572348007&oauth_token=TOKEN&oauth_version=2&oauth_signature=SIGNATURE

We get this error:


We need to write the signature ourselves, but I have tested with Postman with the same results.

We are able to get authenticated, so that makes me believe that our method for creating the signature is correct.

Any help would be appreciated.


  • bmcbridebmcbride USARegistered Users Posts: 5 Big grins
    edited October 29, 2019
    And I have checked, my sbs matches the sbs in the result.
  • devbobodevbobo LR whisperer Melbourne, AURegistered Users, Retired Mod Posts: 4,339 SmugMug Employee

    G'day bmcbride,

    I think the issue is that you have included the oauth_callback argument. This argument should only be sent during the authentication process and not on typical api calls.

    Can you please try removing that and see how you go.



    David Parry
    SmugMug API Developer
    My Photos
  • bmcbridebmcbride USARegistered Users Posts: 5 Big grins
    Thanks David, got it working now.
  • AndyAndy Bicameral New YorkRegistered Users Posts: 50,154 Major grins

    :wink: Thanks Dev!

Sign In or Register to comment.