API to post on Tumblr

北城余情 提交于 2019-12-12 02:36:16

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/13142608/api-to-post-on-tumblr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!