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

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

问题描述

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

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

文档说:参数:数组(URL 编码的二进制内容)

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

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

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

有人知道怎么做吗?

推荐答案

这是一个痛苦的过程,但是我在研究了 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天全站免登陆