api/2/users/me/sites/xxx/posts does not retrieve all posts
25 views
Skip to first unread message
Doron Katz
unread,
Feb 8, 2011, 10:48:10 PM2/8/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to poster...@googlegroups.com
Hi guys,
The API api/2/users/me/sites/xxx/posts does not retrieve all posts, only the first page. How do I get all the pages, or do i have to page them individually? If so, how would i know how many pages there are?
Thanks guys
Age Mooij
unread,
Feb 9, 2011, 6:02:34 AM2/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to poster...@googlegroups.com
AFAIK there is not single call that will get you all the pages. What I do is to start with page 1 and continuously call the API with incremented page numbers until I get a document back containing the following JSON: []
Age
Doron Katz
unread,
Feb 9, 2011, 5:10:57 PM2/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to poster...@googlegroups.com
I realised it came down to that but surely there has to be a better way. Can't there be a page_count in the API/Sites for each site, so we know how many pages, in that case?