我知道 Twitter 已迁移到 API v1.1
我以前曾经使用以下代码片段来检查一个人是否关注另一个人:
https://api.twitter.com/1/friendships/exists.json?screen_name_a=Mamdoh_Salah&screen_name_b=rno
但是如何在 api v1.1 中获得相同的结果? 我得到了身份验证(访问请求)并且一切正常,但是当我像这样检查页面时
https://api.twitter.com/1.1/friendships/exists.json?screen_name_a=Mamdoh_Salah&screen_name_b=rno
我收到此消息:
{"errors":[{"message":"Sorry, that page does not exist","code":34}]}
有谁知道他们是否支持 api v1.1 中的另一个链接?
最佳答案
friendships/show 为您提供有关两个用户之间关系的信息。
https://dev.twitter.com/rest/reference/get/friendships/show
每 15 分钟窗口通话次数限制为 180 次。
关于twitter - 如何检查一个人是否在 Twitter API V1.1 中关注另一个人,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17137209/