0
twitter = twython.Twython(oauth_token        = oauth_token,
                          oauth_token_secret = oauth_secret,
                          app_key            = oauth_consumer_key,
                          app_secret         = oauth_consumer_secret)
twitter.getDirectMessages()

TwythonError: 'Forbidden: The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits. -- An error occurred processing your request.'

我正在使用 dev.twitter.com 上我的应用程序页面上“详细信息”选项卡下显示的令牌、机密和密钥。我有点担心 twython 将其称为 app_key,而 twitter 将其称为 consumer_key。也许我把事情弄糊涂了/倒退了。

其他调用,如 twitter.getFriendsIDs() 成功。

4

0 回答 0