-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Labels
Description
Describe the bug
getArticles does not use cursor based pagination
To Reproduce
Call getArtficles on large help centers fails. Returns error:
HTTP/400: Bad Request - {"error":"LimitError","description":"Offset-based pagination is limited to 100 pages"}
Looking at code
public Iterable<Article> getArticles() {
return new PagedIterable<>(
cnst("/help_center/articles.json"), handleList(Article.class, "articles"));
}
should be:
public Iterable<Article> getArticles() {
return new PagedIterable<>(
cbp("/help_center/articles.json"), handleList(Article.class, "articles"));
}
Expected behavior
Cursor based pagination