了解min_tag_id和max_tag_id [英] Understanding min_tag_id and max_tag_id

查看:117
本文介绍了了解min_tag_id和max_tag_id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tag_media_recent 以max_id和min_id作为参数.
该文档说:
MIN_ID .在此min_id之前返回媒体.
MAX_ID .在此max_id之后返回媒体.

tag_media_recent takes as max_id and min_id as parameters.
The documentation says :
MIN_ID Return media before this min_id.
MAX_ID Return media after this max_id.

我尝试了max_id = 3390883111979(比当前使用的大很多)
它返回最新的标记图像.它不遵循min_id的定义吗?似乎很古怪

I tried max_id = 3390883111979 (very large than what is currently used)
It returns the newest tagged images. Doesn't it follow the definition of min_id? seems erraneous

我也尝试了min_id = 1390922265529max_id = 1390922265528.它返回12张图像.如果给定的最大范围是3,怎么可能?

I also tried min_id = 1390922265529 and max_id = 1390922265528. It returns 12 images. How is that possible when the max range given is 3?

我还尝试了反转min_idmax_id中使用的值.仍然有16张图片.....

I also tried reversing the values used in min_id and max_id. Still 16 images.....

无法从min_tag_id和max_tag_id中识别出任何内容...

任何人都有答案??

推荐答案

我认为您通常是在问min_tag_id和max_tag_id的工作方式. (我知道这个问题很陈旧,但希望能对某人有所帮助)

I think you are asking generally how min_tag_id and max_tag_id work. (I know this question is stale but hopefully this helps someone)

因此,Instagram标记这些标签的方式令人困惑:

So it is confusing the way Instagram has labeled these:

MIN_ID返回此min_id之前的媒体.
MAX_ID返回此max_id之后的媒体.

"之前"和"之后"的定义是从媒体页面的角度来看的,其中第一页是最新的媒体,最后一页是最旧的.

The definitions of "before" and "after" are from the perspective of pages of media, in which the first page is newest media and the last page is oldest.

Instagram在考虑下一个查询的情况下命名了事物.因此,如果您查询最近的媒体,并且响应的"min_tag_id"为1234,则实际上是响应中的高ID标记(您希望将其命名为"max_tag_id"). min_tag_id是您下次查询时用来获取较新媒体的内容.同样,如果要翻页到较旧的媒体,则要搜索 的max_tag_id.

Instagram named things with the next query in mind, I guess. So if you query for recent media and the response has a "min_tag_id" of 1234, that is actually the high id mark in the response (what you would hope would be named 'max_tag_id'). That min_tag_id is what you would use to get newer media, next time you query. Likewise, the max_tag_id is what you would want to search up to, if you want to page through to older media.

例如,您可能会注意到响应中的" next_url "仅仅是另一个查询,其中"max_tag_id"参数设置为该响应的max_tag_id. http://instagram.com/developer/api-console/

For instance, you may notice that 'next_url' in the response is simply another query with 'max_tag_id' parameter set to that response's max_tag_id. http://instagram.com/developer/api-console/

希望更加清晰.

这篇关于了解min_tag_id和max_tag_id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆