Reputation: 1322
I am fetching data using blogger post API.
The results are coming in the newest to oldest format with pagination.I need to fetch with oldest to newest because i need the newest post's time to fetch the data in the next call for the new posts.
How can I use the API with parameters.Currently, i am using the following api call
https://www.googleapis.com/blogger/v3/blogs/posts?startDate2015-10-15T00:00:00+00:00&key=$key
Upvotes: 2
Views: 296
Reputation: 116986
Posts: list only supports ordering by published or updated, not the direction.
orderBy string Sort order applied to results.
- Acceptable values are: "published": Order by the date the post was
- published "updated": Order by the date the post was last updated
I would recommend you sort them yourself after you get the results back from Google.
Upvotes: 1