Search code examples
iosasihttprequesttumblr

API to post on Tumblr


I've been trying to upload an image to Tumblr from my iOS application for a little while now, but I can't get my method to work properly.

My current method uses ASIHTTPRequest and OAuthConsumer according to this guide. However, I end up getting a 401 error (Authentication needed). You can find the explanation for my problem here.

But my question is : Is there any other mean/API to post on Tumblr for iOS? I saw that OAuthConsumer was not fully functional on that side, and I didn't find anything with the GTM.

Thanks.


Solution

  • Finally found a solution to my problem a few time ago. I first thought that it was a bit old and that it wouldn't work but in the end, implementing the TumblrUploadr did the thing.

    To sum it all, I achieved login with GTM-OAuth and uploading with TumblrUploadr. For those who seek a solution to the Tumblr API.

    Update : Some info concerning GTMOAuth, if you want to use the callback, you have to add a flag in the GTMOAuthAuthentication.m > +(NSArray*)tokenAuthorizeKeys : add kOAuthCallbackKey in the array so that it will be taken into account. Else, you have no callback.