首页 文章

Instagram API多个请求

提问于
浏览
0

我正在使用Instagram API开发应用程序 . 我需要取:

1)我的用户关注的用户列表(https://www.instagram.com/developer/endpoints/relationships/#get_users_follows

2)我的用户所遵循的用户列表(https://www.instagram.com/developer/endpoints/relationships/#get_users_followed_by) .

这不是问题,但对于每个用户,我想要有关于"follows"和"followed_by"的信息 . 不幸的是,我上面提供的 endpoints 不会返回此数字 . 所以据我所知,我需要为列表中的每个用户调用下一个 endpoints https://www.instagram.com/developer/endpoints/users/#get_users . 这是太多的调用,这就是我需要在一次调用中加入这些API调用的原因 . 有没有办法制作像"batch request"这样的东西?

我在这里检查了Instagram API文档https://www.instagram.com/developer/以及类似的问题https://stackoverflow.com/questions/32909284/instagram-api-batch-request . 但我的问题没有答案 .

提前致谢 .

1 回答

  • 0

    当用户通过OAuth2协议时,instagram api将向您返回2个参数,第一个是'access_token',第二个是'user_info',我认为在user_info中有一个'count'键,这是您的需要 .

相关问题