oauth_signature?

398 views
Skip to first unread message

Neil Johnson

unread,
May 31, 2012, 4:49:11 PM5/31/12
to Tumblr API Discussion
I have been trying to get an access_token for my app through the xauth
flow.. But I am getting the error "oauth_signature required".

How do i generate this signature? I have been looking everywhere for
documentation on this, but i cant seem to find much.

> HTTParty.post("https://www.tumblr.com/oauth/access_token?x_auth_username=email&password=pass&oauth_secret_key=XXXX&oauth_consumer_key=XXXX&oauth_signature_method=HMAC-SHA1&oauth_timestamp=#{Time.now.to_i}&auth_mode=client_auth")

=> "oauth_signature required"

felix bonkoski

unread,
Jun 1, 2012, 8:14:07 AM6/1/12
to tumbl...@googlegroups.com
Generating oauth signatures is kind of complicated, and where a lot of people on this board have trouble.

You're best off finding a good oauth library to generate the oauth HTTP call for you. It will generate the appropriate oauth headers and signature for your HTTP request, making your life much easier.

It looks like you're using Ruby?
John Bunting (works for Tumblr, and often replies on this board) has some kind of Tumblr Ruby wrapper here:

Not a Ruby programmer personally, But I'd look into those.  

Maybe Mr Bunting has something to add?

Felix B
Reply all
Reply to author
Forward
0 new messages