开发者

What is the "Default callback URL:" for Tumblr API v2?

开发者 https://www.devze.com 2023-04-10 18:45 出处:网络
Hi I am trying to use Tumblr API v2 and OAuth http://www.tumblr.com/docs/en/api/v2 First I have 开发者_运维问答to register an application here: http://www.tumblr.com/oauth/apps

Hi I am trying to use Tumblr API v2 and OAuth http://www.tumblr.com/docs/en/api/v2

First I have 开发者_运维问答to register an application here: http://www.tumblr.com/oauth/apps

But what is the "Default callback URL"? Some random URL?

I just want to write to a Python program to make some posts using command line.

Thanks a lot!


The default callback URL is related to the OAuth 1.0a protocol that Tumblr uses to authenticate your app.

As the OAuth 1.0a specification explains:

OAuth Authentication is done in three steps:

1. The Consumer obtains an unauthorized Request Token.

2. The User authorizes the Request Token.

3. The Consumer exchanges the Request Token for an Access Token.

So with Tumblr process basically looks like this:

  1. A Tumblr user comes to your website, where you have an app that requires some of the private information from their Tumblr account.

  2. Your app will ask Tumblr for an "unauthorized request token".

  3. After your app receives this unauthorized request token from Tumblr, it will then redirect the user to a Tumblr login page, passing the request token along with them.

  4. The user will then be asked by Tumblr if they want to allow your app to access their account. Once the user accepts, Tumblr will authorize the request token, and then redirect the user to the "Default Callback URL" (which your question refers to).

  5. Your app will then exchange this authorized request token for an "access token", which will enable the app to access the user's protected Tumblr data.

... Well, hopefully that clears things up a bit!


"the callback URL is the URL that a user is returned to if they logged in to Tumblr through your application." Source: https://csc.cdf.toronto.edu/mybb/showthread.php?tid=4106

See also: http://wpweb.co.in/documents/social-network-integration/tumblr/


I get it! It can be a random URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号