How do the OAuth authentications work?

260 views
Skip to first unread message

Richard

unread,
May 20, 2013, 6:31:36 PM5/20/13
to tumbl...@googlegroups.com
I've been able to get my oauth_token and oauth_token_secret successfully, but I have no clue how to use them for authentication. How would I go about doing something like retrieving a blog's followers once I have the tokens? I've tried performing a GET request without any parameters (which I knew wouldn't work but I tried just in case), and I've tried it using something like "api.tumblr.com/v2/blog/myurl.tumblr.com/followers?oauth_token=TOKEN&oauth_token_secret=SECRET" but again that didn't work.

I'm not sure if it would help anyone with responding, but I'm using C# for my application and I would really prefer to use OAuth and not xAuth.

John Crepezzi

unread,
May 21, 2013, 10:41:48 AM5/21/13
to tumbl...@googlegroups.com
To make calls that only require API Key access, you can add the consumer key in the URL
like ?api_key=<consumer_key>

For full OAuth calls, you will need to complete a full OAuth workflow to grab the user token & secret
And then use an OAuth library (1.0a) to sign the request you want to make

Hope this helps,
JC


On Mon, May 20, 2013 at 6:31 PM, Richard <blak...@gmail.com> wrote:
I've been able to get my oauth_token and oauth_token_secret successfully, but I have no clue how to use them for authentication. How would I go about doing something like retrieving a blog's followers once I have the tokens? I've tried performing a GET request without any parameters (which I knew wouldn't work but I tried just in case), and I've tried it using something like "api.tumblr.com/v2/blog/myurl.tumblr.com/followers?oauth_token=TOKEN&oauth_token_secret=SECRET" but again that didn't work.

I'm not sure if it would help anyone with responding, but I'm using C# for my application and I would really prefer to use OAuth and not xAuth.

--
You received this message because you are subscribed to the Google Groups "Tumblr API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tumblr-api+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages