如何访问twitter首页时间线?

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

我正在尝试从以下端点获取主页时间线:

https://api.twitter.com/2/users/:id/timelines/reverse_chronological

我正在使用 Postman 文档中提到的 Oauth 1.0

现在,当我传递从客户端获得的访问令牌和访问令牌机密时,它会抛出以下错误:

{
    "client_id": "27964573",
    "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"
}

PS:我可以访问免费的 Twitter API

node.js twitter
1个回答
0
投票

请参阅twitter开发者文档/身份验证 使用nodejs时,您还可以使用twitter-api-v2,它不仅支持v2,还支持v1。

将来尝试提供更多信息以获得更好的解决方案,例如代码示例等。

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