我正在尝试将 account/verify_credentials
和 statuses/update
与 Twitter API 一起使用。我总是收到错误 202,请查看下面返回的错误:
{"errors":[{"code":220,"message":"Your credentials do not allow access to this resource."}]}
最佳答案
仔细检查您的代码 - 看起来您是在使用应用程序 token 而不是用户 token 调用 Twitter REST API。
看这里: https://dev.twitter.com/docs/auth/application-only-auth
为了能够成功地为用户创建新状态,您需要一个特定的用户访问 token 。
关于php - API-错误 202 "Your credentials do not allow access to this resource",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23195832/