0

不久前 twitter 停止支持 rest 1.0,我不得不使用新的 OAuth 系统找到一些问题。我找到了这个

这很好用,而且使用起来很简单。但最近我遇到了一些奇怪的行为。这个,我们称之为模块,没有从给定的屏幕名称收到任何推文。它通过了身份验证,但 json 结果为空,尽管 twitter 上的时间线不是空的。

有没有人遇到过这样的问题?

4

2 回答 2

0

Just change the host url from "https://api.twitter.com/1/" to "https://api.twitter.com/1.1/". I think that will solve your problem.

I've done this in twitteroauth library in php.

于 2013-08-05T17:37:53.683 回答
0

我已经使用 Twitter 4j 库实现了我的 Twitter 客户端,Twitter 4j 库非常易于使用。有很多使用 Twitter 4j 库的例子:http: //twitter4j.org/en/code-examples.html

除此之外,您在使用 Twitter 4j 时不必实现单独的 OAuth 包装器,并且它也已更新到最新的 Twitter REST Api 1.1。

于 2013-08-05T05:22:04.893 回答