Twitter rest api“/1.1/statuses/home_timeline.json”返回空白
问题描述:
此链接发布推文。 https://dev.twitter.com/oauth/overview/authorizing-requestsTwitter rest api“/1.1/statuses/home_timeline.json”返回空白
我的应用程序是通过该链接发布推文。
但https://dev.twitter.com/rest/reference/get/statuses/user_timeline
我编程user_timeline。但我不能。
只需返回空白。
我的iPhone应用程序的OAuth通过https://dev.twitter.com/oauth/overview/authorizing-requests链接正确验证。
为什么返回空白?
我该怎么办? User_timeline不需要OAuth?
我编程User_timeline应用我的oauth,不是吗?
从Twitter公司阻止了吗?
答
您可以使用https://github.com/jublonet/codebird-php/blob/develop/src/codebird.php的codebird。
和时间表的信息是
$cb->setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
$reply = (array) $cb->statuses_homeTimeline();
print_r($reply);
+0
谢谢你的回答。但我使用SWIFT。我真的很想知道为什么twitter公司被*了。 – AquaMinDlRae
我不认为这是清楚你问这里。你可以添加一些代码或者用来调用API的HTTP操作细节,所以人们可以看到你可能会出错的地方吗? – halfer