Re: Blogger API returns only few of my posts
Brett Morgan <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi Sudhakar,
The Blogger API uses pagination on result sets.
When you make a blogger Posts.List request, you will get this in the
result:
"nextPageToken": "CgkIChiAuMyN3ycQ0b2SAQ"
If you then pass this into another blogger Posts.List request as the
pageToken, you will get the next batch of results:
GET
https://www.googleapis.com/blogger/v3/blogs/2399953/posts?pageToken=CgkIChiAuMyN3ycQ0b2SAQ&key={YOUR_API_KEY}
brett
On Monday, August 31, 2015 at 12:27:06 AM UTC+10, அச்சு சுதாகர் wrote:
>
> Hi I'm using bloggerAPI to retrieve all my posts but it returns only "first 10 items". How could I get my all posts? I'm using the below API.
>
> "https://www.googleapis.com/blogger/v3/blogs/*2399953*?key=YOUR-API-KEY"
>
>
> Please help me out to resolve this issue.
>
>
> Thanks
>
> Sudhakar
>
>
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.