gpt4 book ai didi

Instagram/v1/tags/{tag-name}/media/recent 端点不会在分页 block 中返回 min_tag_id

转载 作者:行者123 更新时间:2023-12-03 06:27:34 25 4
gpt4 key购买 nike

根据https://www.instagram.com/developer/endpoints/tags/ ,我们曾经在https://api.instagram.com/v1/tags/tag-name/media/recent?access_token=ACCESS-TOKEN的分页部分获取min_tag_id然后我们在请求中使用该响应来轮询新帖子。

截至今天早上,我们看到 Instagram 改变了分页响应的形式。现在看起来像:

"pagination": {
"next_max_tag_id": "AQBy529IMOAlOvp6EI5zrYZRZbUbNW2oGQjgdvfVi5I_7wTIKzqE2nfsSBHvCkPmWOMKV7kmNcMPErenGJsbDtIk013aPZ_xo4vFYuXqtDGz3ZS0ZBrnTSjtuGjtnEOHiDJlAp8lI99AuwAgObnaf6tYhkoiDajEkg5E2zOFuDZFfQ",
"next_url": "https://api.instagram.com/v1/tags/enplug/media/recent?access_token=1573931388.852f6fb.2ee7fb644c5341dd813bd3bbc4c687ec&max_tag_id=AQBy529IMOAlOvp6EI5zrYZRZbUbNW2oGQjgdvfVi5I_7wTIKzqE2nfsSBHvCkPmWOMKV7kmNcMPErenGJsbDtIk013aPZ_xo4vFYuXqtDGz3ZS0ZBrnTSjtuGjtnEOHiDJlAp8lI99AuwAgObnaf6tYhkoiDajEkg5E2zOFuDZFfQ",
"deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead",
"next_max_id": "AQBy529IMOAlOvp6EI5zrYZRZbUbNW2oGQjgdvfVi5I_7wTIKzqE2nfsSBHvCkPmWOMKV7kmNcMPErenGJsbDtIk013aPZ_xo4vFYuXqtDGz3ZS0ZBrnTSjtuGjtnEOHiDJlAp8lI99AuwAgObnaf6tYhkoiDajEkg5E2zOFuDZFfQ"
}

min_tag_id 现已弃用吗?开发者文档没有提及任何相关内容。

最佳答案

这似乎是 Instagram API 的临时问题,现已解决。

关于Instagram/v1/tags/{tag-name}/media/recent 端点不会在分页 block 中返回 min_tag_id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36166770/

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