Tumblr API - 如何将多个图像上传到Photoset [英] Tumblr API - how to upload multiple images to a Photoset

查看:121
本文介绍了Tumblr API - 如何将多个图像上传到Photoset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以上传一张图片,但我无法使用API​​创建包含多张图片的照片。

I am able to upload one picture but I can't create a photoset with multiple images using API.

文档说:
Paramater:Array( URL编码的二进制内容)

Documentation says: Paramater: Array (URL-encoded binary contents)

一个或多个图像文件(多次提交以创建幻灯片)

One or more image files (submit multiple times to create a slide show)

有谁知道怎么做?

推荐答案

这是一个痛苦的过程,但我在研究了< a href =https://gist.github.com/1198576 =noreferrer> python代码Tumblr发布了。简而言之,它需要获取照片的十六进制,然后进行一些替换。

It's kind of a painful process, but I figured it out after studying the python code Tumblr posted. In short, it requires getting the hexadecimal for the photo and then doing some substitutions.

我创建了一个简单的 GitHub上的iOS / iPad / iPhone项目,使用Tumblr API将多张照片上传到照片集,主要基于 ASIHTTPRequest + OAuth项目。它在我的有限测试中工作到目前为止 - 随意使用它并让我知道它是如何发生的。

I've created a simple iOS / iPad / iPhone project on GitHub that uploads multiple photos to photosets using the Tumblr API, based heavily on the ASIHTTPRequest+OAuth project. It works so far in my limited testing -- feel free to make use of it and let me know how it goes.

这篇关于Tumblr API - 如何将多个图像上传到Photoset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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