1

我正在使用请求 url 的方法,它返回了一个带有预期推文的 JSON。

像这样:https ://twitter.com/statuses/user_timeline/MyUserHere.json?callback=twitterCallback&count=2

但突然它停止工作了。仅返回错误消息。

也许我错过了 twitter API 中的某些内容。但据我所见,现在您必须登录才能请求此类数据。

有什么方法可以在不暴露我的用户的用户和密码的情况下调用这些推文?

4

1 回答 1

4

Twitter 将提要 URL 从 https://twitter.com更改为https://api.twitter.com/1/ 所以试试下面

https://api.twitter.com/1/statuses/user_timeline/MyUserHere.json?callback=twitterCallback&count=2

此处的示例提要网址

https://api.twitter.com/1/statuses/user_timeline/codecocktail.rss

你可以在这里找到更多资源

于 2012-11-09T11:50:34.103 回答