Tumblr API 401 not authorized

I am trying to post content using the Tumblr API. Even though my whole query is GET

working correctly, tags POST

don't. The code I am using to sign the request is the same as for my Twitter API client, which works as expected. This makes me think that I am missing something and this is not a bug in the code.

So I am making the following request (I am deleting keys):

POST http://api.tumblr.com/v2/blog/i054.tumblr.com/post/reblog?id=122815544241&reblog_key=FJFgmo68
Authorization: OAuth oauth_consumer_key="MY_CONSUMER_KEY",
oauth_nonce="8a564528bb632870a22d3ca4b5872b1d",
oauth_signature="VePObL9vgiZSuY0yzH3KD%2FhdB7M%3D", 
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1435942225",
oauth_token="MY_TOKEN",
oauth_version="1.0"
Content-Type: application/x-www-form-urlencoded

 -- response --
401 Not Authorized
Server:  nginx
Date:  Fri, 03 Jul 2015 16:55:26 GMT
Content-Type:  application/json; charset=utf-8
Transfer-Encoding:  chunked
Connection:  close
p3p:  CP="Tumblr privacy policy is available here: https://www.tumblr.com/policy/en/privacy"

{"meta":{"status":401,"msg":"Not Authorized"},"response":[]}

      

What could be wrong? I did the following steps:

  • Create a tumblr app.
  • Authorize my application and take tokens.
+3


source to share





All Articles