【问题标题】:Paging vs. cursoring with max_id in TweetSharps ListTweetsOnSpecifiedUserTimeline在 TweetSharps ListTweetsOnSpecifiedUserTimeline 中使用 max_id 进行分页与游标
【发布时间】:2013-01-10 02:37:13
【问题描述】:

http://dev.twitter.com/docs/working-with-timelines Twitter 的“使用时间线”文档中,建议使用max_id 参数进行光标定位,而不是尝试逐页浏览时间线。查看 Twitter API 方法 GET statuses/user_timeline http://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline 的文档,有一个可选的 max_id 参数,没有 page 参数,以及其他有用的参数,如 include_rts 包括转推。但是 TweetSharp 方法 ListTweetsOnSpecifiedUserTimeline 的重载只包括 page 而不是 max_id。是否可以使用 TweetSharp 使用光标方法(而不是分页)检索指定的用户时间线,如果可以,如何?

【问题讨论】:

    标签: tweetsharp


    【解决方案1】:

    找到了。它作为单独的方法包含在 TweetSharp 中:IEnumerable<TwitterStatus> ListTweetsOnSpecifiedUserTimelineBefore(string screenName, long maxId);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-20
      • 2011-10-30
      • 1970-01-01
      • 1970-01-01
      • 2019-06-29
      • 2019-01-18
      相关资源
      最近更新 更多