soj*_*oju 6 twitter twitter-oauth
当我尝试查询 Twitter 的最近搜索端点时,/2/tweets/search/recent它会引发异常
{
"client_id": "xxxxx",
"required_enrollment": "Standard Basic",
"detail": "When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer app that is attached to a Project. You can create a project via the developer portal.",
"registration_url": "https://developer.twitter.com/en/portal/opt-in",
"title": "Client Forbidden",
"reason": "client-not-enrolled",
"type": "https://api.twitter.com/2/problems/client-forbidden"
}
Run Code Online (Sandbox Code Playgroud)
附加信息
授权 Oauth 1.0
签名方法 HMAC-SHA1
还提供消费者密钥、秘密、访问令牌、令牌秘密
为什么会这样?当我搜索此错误时,我没有得到任何有用的信息When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer app that is attached to a Project. You can create a project via the developer portal.请帮助..
Ada*_*aka 10
只需在 Twitter 开发者门户中为独立应用程序创建一个项目即可。还要确保v2 Access您的项目名称前面有“项目和应用程序 => 概述”下的标签。
| 归档时间: |
|
| 查看次数: |
957 次 |
| 最近记录: |