Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 514
DocWiki Avatar asked Oct 05 '11 20:10

DocWiki


1 Answers

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!

like image 82
J. Taylor Avatar answered Oct 21 '22 03:10

J. Taylor