在Tumblr上发布的API [英] API to post on Tumblr

查看:158
本文介绍了在Tumblr上发布的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试将图像从我的iOS应用程序上传到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.

根据本指南. 但是,我最终收到401错误(需要身份验证). 您可以在此处找到问题的解释.

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.

但是我的问题是:在iOS的Tumblr上还有其他其他方法/API可以发布吗? 我看到OAuthConsumer在那方面还没有完全发挥作用,并且在GTM中我什么也没找到.

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.

谢谢.

推荐答案

终于在不久前找到了解决我问题的方法. 我首先认为它有点旧,无法使用,但最后还是实现了 TumblrUploadr 做了那件事.

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.

总而言之,我实现了使用GTM-OAuth登录和使用TumblrUploadr上传的功能.对于那些寻求Tumblr API解决方案的人.

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

更新:一些关于GTMOAuth的信息,如果要使用回调,则必须在GTMOAuthAuthentication.m中添加一个标志.+ +(NSArray *)tokenAuthorizeKeys:在数组中添加kOAuthCallbackKey,以便它将被考虑在内.否则,您没有回调.

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.

这篇关于在Tumblr上发布的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆