检查Instagram帐户是公共帐户还是私人帐户 [英] Check if an Instagram account is public or private
问题描述
我看了这个特殊的问题: https://www.instagram.com/developer/endpoints/relationships/上的端点均无似乎告诉我帐户是否为私人帐户.有什么办法可以检查吗?
I have looked this particular question: Find out whether a user has a public or private profile on instagram using API?, but I don't see a return bool value target_user_is_private
as mentioned in the above question. I also don't see any other way to check; none of the endpoints on https://www.instagram.com/developer/endpoints/relationships/ seems to tell me if an account if private or not. Is there any way to check?
推荐答案
此端点返回target_user_is_private
https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN
如果您处于沙盒模式,那么除了沙盒批准的用户之外,您不会收到与其他用户有任何关系的响应.
If you are in sandbox mode then you will not get a response with relationship for any user other than your sandbox approved user.
如果您处于沙盒模式,则将用户添加到沙盒中,然后将上述API与该用户的{user-id}一起使用,您将获得target_user_is_private
If you are in sandbox mode, add a user to your sandbox, and then use the above API with that user's {user-id}, you will get a response with target_user_is_private
这篇关于检查Instagram帐户是公共帐户还是私人帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!