有关信息,我有一个免费帐户。
我想使用 Twitter API V2 集合向 Postman 发出请求,以测试 API 并在开发应用程序之前验证一切正常(密钥和令牌)。
我尝试发出 GET Single Tweet 请求(Tweet Lookup),这是我得到的错误:
{
"client_id": "26990924",
"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/docs/projects/overview",
"title": "Client Forbidden",
"required_enrollment": "Appropriate Level of API Access",
"reason": "client-not-enrolled",
"type": "https://api.twitter.com/2/problems/client-forbidden"
}
我浏览了整个论坛,我认为我是拥有无效密钥和令牌的不幸者之一。
使用不记名令牌授权,我的环境没问题。
提前致谢!
(我多次尝试重新生成令牌和密钥,但没有用)
马斯克制作的 twitter api 付费。
仅可免费访问 3 个端点:
POST /2/tweets
,
DELETE /2/tweets/:id
和GET /2/users/me