确定一个用户是否使用Instagram API跟随另一个用户

编程入门 行业动态 更新时间:2024-10-28 02:21:04
本文介绍了确定一个用户是否使用Instagram API跟随另一个用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是一个相当初级的程序员,尝试使用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跟随另一个用户

本文发布于:2023-11-11 11:49:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578355.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户   Instagram   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!