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

3

17

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!

Straightlaced answered 5/10, 2011 at 20:19 Comment(1)
So ... this was never answered? SO folks, some us are in fact so stupid that we come here looking for information....Brinkman
T
9

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!

Troostite answered 5/3, 2015 at 2:20 Comment(3)
You described the process but did not clarify what to put and why. This is not clear, "and then redirect the user to the "Default Callback URL""Evelyn
You must have access to the callback URL. This answer is very veague in that respect. The "authorized request tokens" are passed through the callback URL as arguments. (ex: g.com?arg=val) You need to be able to access them if you want to proceed. Which means that the callback-URL is either part of your Web-App or localhost which you can access server running on your users computer.Groovy
I still don't understand. If I'm writing a bot that just runs as a standalone process, and not a web app through which people can access Tumblr, does the callback URL matter?Vicenary
E
0

"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/

Evelyn answered 22/12, 2016 at 9:8 Comment(0)
S
-7

I get it! It can be a random URL.

Straightlaced answered 5/10, 2011 at 21:42 Comment(1)
Best answer for those of us trying to just use the API to automate our own personal interactions with TumblrGogetter

© 2022 - 2024 — McMap. All rights reserved.