Re: How to get next post
Juan Castela Martínez <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi, (again), I forgot to comment you other mode to make a pagination. The webservice List to Post get a token data to indicate the next post to paginate, if you store this values in a array with methods push and pop (in Javascript) you can paginate between yours posts. The data to get and inform are: - *pageToken:* The value at inform for get the next post. - *nextPageToken:* The value to pass to pageToken variable. Sorry for my cluelessness. Best regards. El jueves, 23 de abril de 2015, 9:03:33 (UTC+2), 金野佑介 escribió: > > Hi Juan, > > Thank you for your reply. > > I understand what you say. That's the best way to get the post in blogger > api v3 for now. > I thought that generally, a post of blog has "Previous post link" and > "Next post link" and I can get the next post easily. > I hope the api will have function like "nextPost/postid". > > Actually, I'm a beginner of English. > Thank you for understanding my question. > > > > > > > > 2015年4月23日木曜日 11時59分30秒 UTC+9 Juan Castela Martínez: >> >> 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.