当我尝试查询 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"
}
附加信息
授权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.
请帮忙..
只需在 Twitter 开发者门户中为独立应用程序创建一个项目即可。并且还要确保你有v2 Access
项目和应用程序 => 项目名称前面的概述下的标签。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)