我是一个相当初级的程序员,尝试使用Instagram API.我已完成所有设置,正在构建的应用程序需要一个来查看一个用户是否关注另一个用户.有没有一种方法可以检查这一条语句,而不是获得用户关注者的完整列表?非常感激.谢谢!
I'm a fairly beginner programmer trying my hand with the Instagram API. I have everything set up, and the app I'm building requires one to see if one user follows another or not. Is there a way to check this one statement rather than getting a whole list of a user's followers? Much appreciated. Thanks!
推荐答案您可以使用API检查登录用户与其他任何用户的关系:
You can check if the logged-in user's relationship with any other user with API:
api.instagram/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN您可以在响应中检查incomming_status和outgoing_status.
you can check the incomming_status and outgoing_status in the response.
随机2位用户之间没有API是直接检查关系.
There is no API is check relationship between random 2 users directly.
更多推荐
确定一个用户是否使用Instagram API跟随另一个用户
发布评论