如何从 Tumblr 找到转发源 API
How to find the reblog source from the Tumblr API
使用 Tumblr API v2,我使用 /posts API 调用在 JSON 中获得了照片列表 posts。
对于每个 post 我想知道 post 是从哪个用户转发的(如果有的话),就像 Tumblr 显示 post 被转发的用户一样来自.
可以从 /post 的回复中得到 source_url 或 source_title,但这不是最后一个转发者 - 这似乎是初始来源。
有什么想法吗?
转发信息
向 Tumblr 发出请求时,转发详细信息默认设置为 false API。要启用它们,请发送以下参数 ?reblog_info=true
。
示例:
https://api.tumblr.com/v2/blog/pitchersandpoets.tumblr.com/posts?reblog_info=true
如果转发,回复将包含以下内容:
"reblogged_from_id": "139318910829",
"reblogged_from_url": "http:\/\/travelswithzoe.tumblr.com\/post\/139318910829\/happy-valentines-day",
"reblogged_from_name": "travelswithzoe",
"reblogged_from_title": "Travels with Zo\u00eb",
"reblogged_from_uuid": "travelswithzoe.tumblr.com",
"reblogged_from_can_message": true,
"reblogged_root_id": "139318910829",
"reblogged_root_url": "http:\/\/travelswithzoe.tumblr.com\/post\/139318910829\/happy-valentines-day",
"reblogged_root_name": "travelswithzoe",
"reblogged_root_title": "Travels with Zo\u00eb",
"reblogged_root_uuid": "travelswithzoe.tumblr.com",
"reblogged_root_can_message": true
使用 Tumblr API v2,我使用 /posts API 调用在 JSON 中获得了照片列表 posts。
对于每个 post 我想知道 post 是从哪个用户转发的(如果有的话),就像 Tumblr 显示 post 被转发的用户一样来自.
可以从 /post 的回复中得到 source_url 或 source_title,但这不是最后一个转发者 - 这似乎是初始来源。
有什么想法吗?
转发信息
向 Tumblr 发出请求时,转发详细信息默认设置为 false API。要启用它们,请发送以下参数 ?reblog_info=true
。
示例:
https://api.tumblr.com/v2/blog/pitchersandpoets.tumblr.com/posts?reblog_info=true
如果转发,回复将包含以下内容:
"reblogged_from_id": "139318910829",
"reblogged_from_url": "http:\/\/travelswithzoe.tumblr.com\/post\/139318910829\/happy-valentines-day",
"reblogged_from_name": "travelswithzoe",
"reblogged_from_title": "Travels with Zo\u00eb",
"reblogged_from_uuid": "travelswithzoe.tumblr.com",
"reblogged_from_can_message": true,
"reblogged_root_id": "139318910829",
"reblogged_root_url": "http:\/\/travelswithzoe.tumblr.com\/post\/139318910829\/happy-valentines-day",
"reblogged_root_name": "travelswithzoe",
"reblogged_root_title": "Travels with Zo\u00eb",
"reblogged_root_uuid": "travelswithzoe.tumblr.com",
"reblogged_root_can_message": true