检查 Instagram 帐户是 public 还是私人帐户
Check if an Instagram account is public or private
我查看了这个特定问题: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/ 似乎告诉我帐户是否为私人帐户。有什么方法可以检查吗?
这个端点returnstarget_user_is_private
https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN
如果您处于沙盒模式,那么除了您的沙盒批准用户之外,您将不会收到与任何用户的关系的响应。
如果您处于沙盒模式,请将用户添加到您的沙盒,然后将上述 API 与该用户的 {user-id} 一起使用,您将收到 target_user_is_private
我查看了这个特定问题: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/ 似乎告诉我帐户是否为私人帐户。有什么方法可以检查吗?
这个端点returnstarget_user_is_private
https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN
如果您处于沙盒模式,那么除了您的沙盒批准用户之外,您将不会收到与任何用户的关系的响应。
如果您处于沙盒模式,请将用户添加到您的沙盒,然后将上述 API 与该用户的 {user-id} 一起使用,您将收到 target_user_is_private