【发布时间】:2015-03-24 16:47:04
【问题描述】:
我使用这个 php : https://github.com/tumblr/tumblr.php 创建一个带有照片、标签和标题的帖子。
$client = new Tumblr\API\Client(/*my keys*/);
$data = ['type' => "photo",
'tags' => "test2, soir",
'source' => "https://www.google.fr/images/srpr/logo11w.png"];
$client->createPost($blogName, $data);
现在我想上传多张照片来制作照片集;所以我试试
'source' => ["https://www.google.fr/images","/* img url */","/* … */"]
Photosets 是 Tumblr API v2 http://engineering.tumblr.com/post/7541361718/introducing-tumblrs-new-api 的一项新功能,但我没有找到该功能的任何示例……
【问题讨论】:
-
Tumblr API - 发布照片:tumblr.com/docs/en/api/v2#pphoto-posts
-
“数组(URL 编码的二进制内容)限制:10 MB”和“一个或多个图像文件(多次提交以创建幻灯片)”是什么意思?
<?php urlencode('path/to/img.jpg') ?>?