我正在使用 Twitter API 构建一个 Web 应用程序,并且想知道是否有任何方法可以获取最喜欢的推文计数。我搜索了很多,但没有运气。一定是有原因的,因为我在很多应用程序中都看到了这个功能。你能帮我解决这个问题吗?
问问题
1195 次
2 回答
1
新 API V1.1 现在支持推文收藏的计数。这里试试
stdClass Object
(
[created_at] => Thu Apr 04 20:09:16 +0000 2013
[id] => 319904523520983041
[id_str] => 319904523520983041
[text] => North Koreas perspective of the world in the next 5 years http://t.co/MxRgD00VCY
[source] => web
[truncated] =>
[in_reply_to_status_id] =>
[in_reply_to_status_id_str] =>
[in_reply_to_user_id] =>
[in_reply_to_user_id_str] =>
[in_reply_to_screen_name] =>
[geo] =>
[coordinates] =>
[place] =>
[contributors] =>
[retweet_count] => 7
[favorite_count] => 7
[entities] => stdClass Object
(
[hashtags] => Array
于 2013-04-04T22:33:58.203 回答
0
有一个非官方的 API可用于获取推文摘要。
要从 API 获取推文摘要:
https://api.twitter.com/i/statuses/[tweet.id]/activity/summary.json
这是(样本)结果:
{
"favoriters":[113682166],
"favoriters_count":"1",
"repliers":[],
"repliers_count":"0",
"retweeters_count":"1",
"retweeters":[113682166]
}
于 2012-10-17T09:50:03.250 回答