Twitter api版本2引发客户端禁止错误

Twitter api版本2引发客户端禁止错误,twitter,twitter-oauth,Twitter,Twitter Oauth,当我试图查询twitter最近的搜索端点时,它抛出一个异常 { "client_id": "xxxxx", "required_enrollment": "Standard Basic", "detail": "When authenticating requests to the Twitter API v2 endpoints, you must use ke

当我试图查询twitter最近的搜索端点时,它抛出一个异常

{
    "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

还提供使用者密钥、密码、访问令牌、令牌密码


为什么会这样?使用此错误搜索时,我没有得到任何有用的信息
在验证对Twitter API v2端点的请求时,您必须使用附加到项目的Twitter开发者应用程序中的密钥和令牌。您可以通过开发者门户创建项目。
请帮助。

只需在Twitter开发者门户中为独立应用程序创建一个项目

在开发者门户中,您是否设置了项目和应用程序?还是只有独立的应用程序?这应该在您使用错误消息中的门户选择加入URL后显示在此页面上。我已经有了一个项目和应用程序setup@AndyPiper在“项目”部分下,我可以看到一个项目应用程序,其中列出了我的应用程序。请将我重定向到仪表板。您是如何访问端点的,这是来自邮递员还是来自代码?听起来您可能正在尝试使用用户身份验证,您是否尝试在项目中使用应用程序的承载令牌?