【发布时间】:2013-07-28 00:34:31
【问题描述】:
我想获得一条推文的转发次数。我写了这段代码
$info = $twitteroauth->get('https://api.twitter.com/1.1/statuses/retweets/:345469673132945408.json');
$twitteroauth->post('https://api.twitter.com/1.1/statuses/update.json?status= This is the status update');
print_r($info);
它发布This is the status update 消息。没有问题。所以$twitteroauth对象没有问题。但它会打印错误而不是打印$info
[errors] => Array
(
[0] => stdClass Object
(
[message] => Sorry, that page does not exist
[code] => 34
)
)
345469673132945408th 推文是公开的且未删除的推文。我正在使用亚伯拉罕的图书馆。那么如何获得一条推文的转发次数呢?
【问题讨论】:
标签: php twitter twitter-oauth tweets