使用 manage follows endpoint 入门
构建“管理关注”请求的步骤
步骤一:选择工具或库
第二步:为请求进行身份验证
第三步:指定谁关注谁
- 使用 user lookup by username endpoint,你可以传入一个用户名并获取返回中的 id 字段。
- 查看你的 Access Token,其中的数字部分就是你的用户 ID。
Key | Value |
id | (你的用户 ID) |
target_user_id | 2244994945 |
- 如果返回 “following”: true,则表示该 id 已成功关注 target_user_id。
- 如果返回 “pending”: true,则表示 target_user_id 为受保护账号,必须接受你的关注请求。