【发布时间】:2017-01-27 15:32:45
【问题描述】:
我正在尝试在沙盒中的 Instagram API 上使用此端点:
https://api.instagram.com/v1/tags/<NAME>/media/recent?access_token=<TOKEN>
但它会返回:
{"pagination": {"deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"}, "meta": {"code": 200}, "data": []}
所以我尝试了:
https://api.instagram.com/v1/tags/brasilbest/media/recent?access_token=3942609881.87c85c5.9823c28375544c5395f83db9c01a12f8&min_tag_id=0&max_tag_id=10
然后它返回:
{"meta": {"error_type": "APIInvalidParametersError", "code": 400, "error_message": "max_id must not be a media id."}}
我尝试只使用 max_tag_id 和 min_tag_id,我还尝试了 max_tag_id 和 min_tag_id 的不同值。
我的问题是我如何在该请求中使用 max_tag_id 和 min_tag_id 以及在我的应用程序处于沙盒时是否可以获取最近的媒体?
作为记录,当我使用
https://api.instagram.com/v1/tags/search?q=google&access_token=<TOKEN>
或者:
https://api.instagram.com/v1/tags/google?access_token=3942609881.87c85c5.9823c28375544c5395f83db9c01a12f8
它有效。但是 v1/tags/google/media/recent 没有。
【问题讨论】:
标签: http web request instagram instagram-api