I recently got oAuth for my Tumblr login iOS app. Now I am having trouble publishing using new API calls. I can generate a request and prepare authorization headers, but I'm still getting errors.
Here is my url:
http://api.tumblr.com/v2/blog/my_blog.tumblr.com/post?tweet=no&tags=my%2C%20app&state=published&type=text&title=Hello&body=I%2520finally%2520got%2520this%2520to%2520work
Here is my authorization header with x instead of confidential information:
Authorization = "OAuth domain = \" \ ", oauth_consumer_key = \" XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \ ", oauth_token = \" XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \ ", oauth_signature_method = \" HMAC-SHA1 \ ", oauth_signature = \" XXXXXXXXXXXXXXXXXXXXXXXXX \ ", oauth_timestamp = \" 1347656207 \ ", oauth_nonce = \" XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX \ ", oauth_version = \" 1.0 \ "";
The error I am getting is:
{"meta": {"status": 400, "msg": "Bad Request"}, "response": {"errors": ["The message cannot be empty." ]}}
Does anyone have any experience? I have been working on it for at least 20 hours for two days.
Any help is greatly appreciated.
EDIT: I also tried to include the authorization data in the url (i.e. oauth_token, oauth_consumer_key), essentially the material found in the header. When I do this, I get error 401 "Not Authorized", which, as I know, is incorrect, because I just successfully called "http://api.tumblr.com/v2/user/info", which requires valid authorization.
solution found, see explanation here .