Twitter 的 max_id 参数的默认值? [英] Default value for Twitter's max_id Parameter?

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

问题描述

Twitter 新的 max_id 参数有默认值吗?

Is there a default value for Twitter's newish max_id parameter?

我试过了:

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=justinbieber&trim_user=true&count=200&max_id=false

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=justinbieber&trim_user=true&count=200&max_id=null

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=justinbieber&trim_user=true&count=200&max_id=9999999999999999999999

我只希望它返回完全不使用 max_id 时返回的内容:

I just want it to return exactly what it would return if you didn't use a max_id at all:

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=justinbieber&trim_user=true&count=200

Biebs 指望你...

Biebs is counting on you...

推荐答案

我认为没有默认设置.如果您希望结果就像您没有使用 max_id 一样,则不要发送 max_id.它的目的是用于分页,所以如果你运行

I don't think there is a default. If you want the result as if you didn't use max_id, then don't send the max_id. It's purpose is for pagination, so if you ran

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=justinbieber&trim_user=true&count=200&max_id=216942783313883136

在任何时候,您都会得到相同的 200 个结果.如果你只关心最近的 200 个,那就别管它了.

at any time, you are going to get the same 200 results. If you only care about the most recent 200 then don't bother with it.

这篇关于Twitter 的 max_id 参数的默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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