gpt4 book ai didi

json - 检查 Instagram 帐户是公共(public)帐户还是私有(private)帐户

转载 作者:行者123 更新时间:2023-12-04 19:39:29 25 4
gpt4 key购买 nike

我看过这个特殊的问题:Find out whether a user has a public or private profile on instagram using API? ,但我没有看到返回 bool 值 target_user_is_private如上述问题所述。我也看不到任何其他检查方法; https://www.instagram.com/developer/endpoints/relationships/ 上没有端点似乎告诉我一个帐户是否为私有(private)帐户。有什么方法可以检查吗?

最佳答案

此端点返回 target_user_is_private

  https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN

如果您处于沙盒模式,那么除了您的沙盒批准用户之外,您将不会收到任何用户的关系响应。

如果您处于沙盒模式,请将用户添加到您的沙盒中,然后将上述 API 与该用户的 {user-id} 一起使用,您将收到 target_user_is_private 的响应

关于json - 检查 Instagram 帐户是公共(public)帐户还是私有(private)帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38709552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com