通过 Twitter API v2 集合向 Postman 发出请求时出现密钥和令牌问题

问题描述 投票:0回答:1

有关信息,我有一个免费帐户。

我想使用 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"
}

我浏览了整个论坛,我认为我是拥有无效密钥和令牌的不幸者之一。

使用不记名令牌授权,我的环境没问题。

提前致谢!

(我多次尝试重新生成令牌和密钥,但没有用)

postman twitter-oauth twitter-api-v2
1个回答
0
投票

马斯克制作的 twitter api 付费。

仅可免费访问 3 个端点:

POST /2/tweets
,
DELETE /2/tweets/:id
GET /2/users/me

来源:https://developer.twitter.com/en

TL; DR Musk 想要 100 美元的 api,以获取速率限制为 15 次请求/15 分钟的推文

© www.soinside.com 2019 - 2024. All rights reserved.