Re: How to get next post

Juan Castela Martínez <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi,

     I think to you must use orderBy too. If you use endDate and startDate, 
the webservices will get the last post and the first post respectly always 
(depending on the date that you indicate and the number of posts existing 
in such date) and you need orderBy to order the results. 

Sorry if my english is so badly.

Thanks and best regards.

El martes, 21 de abril de 2015, 7:19:25 (UTC+2), 金野佑介 escribió:
>
> I'd like to get next post id.
>
> I'm able to get previous post with below.
>
> https://www.googleapis.com/blogger/v3/blogs/[blogid]/posts?endDate=[published]&maxResults=1&key=XXXXX
> "published" is that date of current post.
>
> so I thought that I can get next post with below.
>
> https://www.googleapis.com/blogger/v3/blogs/[blogid]/posts?startDate=[published]&maxResults=1&key=XXXXX
>
> But orderBy option can't set Ascending. so I always get the latest post.
>
> If you know how to get next post, I'd like you to reply your message.
>
> Thanks.
>
>
>
>
>
>
>
>

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.