Re: API error for posts/pages queries without status and for specific page/post query
reprotector <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Luke, They aren't drafts. They are live posts/pages. I'm authenticated. Brett, Here are the steps to reproduce on API Explorer: 1 - Go to this litByUser method and grab your blogId https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.blogs.listByUser?userId=self&_h=1& 2 - Go to lists posts method, fill it with your blogId and press execute. You will get an 404 error. https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.list?blogId=835577382999047520&_h=2& 3 - To make sure the problem is with post status, fill it with some status. I've filled it with all 3 status: Live, Draft and schedule. Get some postId for next query. https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.list?blogId=835577382999047520&status=live&status=draft&status=scheduled&_h=8& 4 - Go to get a specific post method and fill it with blogId and postId. You will get a 404 error. https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.get?blogId=835577382999047520&postId=2586611971940434851&_h=2& Feel free to ask for more details if you need it. Thanks On Tuesday, June 2, 2015 at 11:20:30 PM UTC-3, Luke wrote: > > Hi there, > > Is it possible that all of your posts/pages are draft? When not specified, > the default status set is just LIVE, and 404 means it found no results. > > Are you authenticating your requests? A 404 will be returned if you > attempt to access a draft post/page as an anonymous user, or READER level > view. > > Luke > -- 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.