Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I haven't used the Tumblr API specifically, but have some ideas about your issue.</p> <p>You didn't say what exactly are you trying to do. Have you successfully received access token? Or you are trying to use request token to get user info? - which won't work.</p> <p>oauth_verifier is only needed in process of getting the access token - not when using normal API functionality (like getting user info).</p> <p>To me it seems that you're trying to use request token to access user info and additionally unnecessarily adding the oauth_verifier to the url. You'll probably need to read on OAuth 1.0a flow.</p> <p>Hope this helps.</p> <p>UPDATE:</p> <p>Here's a diagram of how OAuth 1.0a flow should look like. <img src="https://i.stack.imgur.com/fMtDu.png" alt="enter image description here"></p> <p><a href="http://s3.pixane.com/Oauth_diagram.png" rel="nofollow noreferrer">The original diagram image here</a></p> <p>UPDATE after UPDATE </p> <p>You say you're using the library from here <a href="http://oauth.riaforge.org/" rel="nofollow noreferrer">http://oauth.riaforge.org/</a> but I don't see it in your code. Again - I haven't used the Tumblr API specifically, but simplest call using the aforementioned library I do like this: </p> <pre><code>&lt;cfscript&gt; consumerKey = 'xxx'; consumerSecret = 'yyy'; accessToken = 'xxxyyy'; accessSecret = 'yyyxxx'; //consumber object oauthConsumerCFC = CreateObject("component", "OAuth.oauthconsumer"); oTumblrConsumer = oauthConsumerCFC.init(sKey = consumerKey, sSecret = consumerSecret); //token object oauthTokenCFC = CreateObject("component", "OAuth.oauthtoken"); oTumblrAccessToken = oauthTokenCFC.init(sKey = accessToken, sSecret = accessSecret); //request object oauthRequestCFC = CreateObject("component", "OAuth.oauthrequest"); oTumblrReqest = oauthRequestCFC.fromConsumerAndToken( oConsumer : oTumblrConsumer, oToken : oTumblrAccessToken, sHttpMethod : "GET", sHttpURL : "http://api.tumblr.com/v2/user/info" ); //signature method oauthSigMethodSHA = CreateObject("component", "OAuth.oauthsignaturemethod_hmac_sha1") //sign request oTumblrReqest.signRequest( oSignatureMethod : oauthSigMethodSHA, oConsumer : oTumblrConsumer, oToken : oTumblrAccessToken ); //signed url signedURL = oTumblrReqest.getString(); &lt;/cfscript&gt; &lt;cfhttp method="get" url="#signedURL#" result="requestResult" charset="utf-8" redirect="no" /&gt; &lt;cfdump var="#requestResult#"&gt; </code></pre> <p>You can see other examples that are in the OAuth library archive.</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload