0

我正在尝试使用以下网址通过新的 iOS Twitter 框架搜索用户.. https://api.twitter.com/1/users/search.json?q=%@&page=2&per_page=20

该 api 说每页最多搜索 20 人.. https://dev.twitter.com/docs/api/1/get/users/search

所以我设置 page=2 来获取 40 人,但它仍然获取 20 人。

这是 twitter 框架中的错误还是我必须做的其他事情..

帮助将不胜感激。

4

1 回答 1

1

No matter what query you run, you'll get 20 people back. The reason to set page is so that you can page through the results.

page=1&per_page=20 returns the first 20 people.page=2&per_page=20 returns the next 20 people. And so on.

于 2012-04-12T10:42:22.027 回答