开始使用过滤流端点
先决条件完成本指南,你需要一组用于对请求进行认证的keys and tokens。你可以按照以下步骤生成这些 keys 和 tokens:
- 注册开发者账号并通过审核。
- 在开发者门户中创建一个Project以及关联的developer App。
- 前往你的应用的“Keys and tokens”页面以生成所需的凭据。请务必将所有凭据保存在安全位置。
使用 cURL 构建过滤流请求的步骤
has:images
with images
- 主 Post 对象中的附加字段 tweet.created_at。
- 返回的 Posts 的关联作者的 user 对象 默认字段:id、name 和 username
- 关联 user 对象中的附加字段 user.created_at。
| Key | Value | Returned fields |
| tweet.fields | created_at | tweets.created_at |
| expansions | author_id | includes.users.id, includes.users.name, includes.users.username |
| user.fields | created_at | includes.users.created_at |