使用 Instagram API return 空参数获取所有用户媒体
get all of the user media with Instagram API return empty parameter
我在使用 Instagram API 和 min_id
以及 max_id
参数时遇到了问题。
我的经过身份验证的用户有超过 100 个媒体,但是当我尝试在他的前 20 个媒体上获取用户媒体的另一部分时,它变得空 data
JSON 参数。
例如,我的第一个媒体 ID 是 1173958321567246146_177152120
,最后一个是 1070424319045215888_177152120
,但是当我尝试使用此 URI 发送请求时,我得到一个空数组:
https://api.instagram.com/v1/users/177152120/media/recent/?max_id=1070424319045215888_177152120&access_token={MY_ACCESS_TOKEN}
我认为您处于沙盒模式?沙盒模式仅限于 API 响应中的最后 20 个媒体项目。
以下是有关沙盒模式的更多详细信息:https://www.instagram.com/developer/sandbox/
To help you develop and test your app, the users and media available
in Sandbox mode are real Instagram data (i.e. what is normally visible
in the Instagram app), but with the following conditions:
- Apps in sandbox are restricted to 10 users
- Data is restricted to the 10 users and the 20 most recent media from each of those users
- Reduced API rate limits
我在使用 Instagram API 和 min_id
以及 max_id
参数时遇到了问题。
我的经过身份验证的用户有超过 100 个媒体,但是当我尝试在他的前 20 个媒体上获取用户媒体的另一部分时,它变得空 data
JSON 参数。
例如,我的第一个媒体 ID 是 1173958321567246146_177152120
,最后一个是 1070424319045215888_177152120
,但是当我尝试使用此 URI 发送请求时,我得到一个空数组:
https://api.instagram.com/v1/users/177152120/media/recent/?max_id=1070424319045215888_177152120&access_token={MY_ACCESS_TOKEN}
我认为您处于沙盒模式?沙盒模式仅限于 API 响应中的最后 20 个媒体项目。
以下是有关沙盒模式的更多详细信息:https://www.instagram.com/developer/sandbox/
To help you develop and test your app, the users and media available in Sandbox mode are real Instagram data (i.e. what is normally visible in the Instagram app), but with the following conditions:
- Apps in sandbox are restricted to 10 users
- Data is restricted to the 10 users and the 20 most recent media from each of those users
- Reduced API rate limits