开始使用 List Posts 查询 endpoint
构建 List Posts 查询请求的步骤
第一步:选择一种工具或库
第二步:对请求进行身份验证
第三步:确定并指定要从哪个 List 中检索 Posts
Key | Value |
id | 84839422(List ID) |
步骤四:确定并指定要检索的 fields
- 主 Lists 对象中的额外 created_at field。
- 使用 expansions 参数返回完整的 用户对象
- 关联用户对象中的额外 user.created_at field。
Key | Value | Returned fields |
tweet.fields | created_at | created_at |
expansions | author_id | includes.users.id, includes.users.name, includes.users.username |
user.fields | created_at | includes.users.created_at |
https://api.x.com/2/lists/84839422/tweets?expansions=author_id&user.fields=created_at&max_results=1