Re: Blogger API correctly returns results of listByUser, but returns "403 Forbidden" when asked to list posts.

Brian McClintock <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi Brett

Here is the listByUser() call, which appears to work fine:

Request

GET https://www.googleapis.com/blogger/v3/users/self/blogs?key={YOUR_API_KEY}

Authorization:  Bearer ya29.1.AADtN_XJySlkQeGIEJrdg3Ja0gNSf_WNTPdEgp1MVl4y-gaDzgEuyQoVupug3rRAWF3Ub3g
X-JavaScript-User-Agent:  Google APIs Explorer

 Response

200 OK

- Show headers -

{
 "kind": "blogger#blogList",
 "items": [
  {
   "kind": "blogger#blog",
   "id": "4199561130827069595",
   "name": "McClintocks Abroad",
   "description": "The latest entries are listed first, so you may wish to read from the bottom up...",
   "published": "2011-06-18T18:04:30+12:00",
   "updated": "2014-03-19T22:36:58+13:00",
   "url": "http://mcclintocksabroad.blogspot.com/",
   "selfLink": "https://content.googleapis.com/blogger/v3/blogs/4199561130827069595",
   "posts": {
    "totalItems": 100,
    "selfLink": "https://content.googleapis.com/blogger/v3/blogs/4199561130827069595/posts"
   },
   "pages": {
    "totalItems": 3,
    "selfLink": "https://content.googleapis.com/blogger/v3/blogs/4199561130827069595/pages"
   },
   "locale": {
    "language": "en",
    "country": "GB",
    "variant": ""
   }
  }
 ]
}


And (of course) today when I try the next step I am getting a different 
response!  Last week it was "403 Forbidden", but now it is "404 Not found". 
 An example follows - a request for a single blog entry:

Request

GET https://www.googleapis.com/blogger/v3/blogs/4199561130827069595/posts/3386927909498059701?key={YOUR_API_KEY}

Authorization:  Bearer ya29.1.AADtN_XJySlkQeGIEJrdg3Ja0gNSf_WNTPdEgp1MVl4y-gaDzgEuyQoVupug3rRAWF3Ub3g
X-JavaScript-User-Agent:  Google APIs Explorer

 Response

404 Not Found

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "notFound",
    "message": "Not Found"
   }
  ],
  "code": 404,
  "message": "Not Found"
 }
}


Can you help me understand what's going on here?

Thanks
Brian


On Monday, March 17, 2014 1:26:54 PM UTC+13, Brett Morgan wrote:
>
> Heya Brian,
>
> Any chance of you cutting and pasting me the URL of the failing 
> blogger.posts.list query from the APIs Explorer? (The URL contains the all 
> important blog ID, along with anything else you have set.)
>
> brett
>
>
> On Sun, Mar 16, 2014 at 11:21 AM, Brian McClintock <[email protected]<javascript:>
> > wrote:
>
>> I am new to the Blogger API.  I have worked with Brett's javascript 
>> Blogger CKEditor example, substituting my own client Id and API key, and 
>> find that it correctly logs in, returns an access key, and lists my blogs 
>> (I have just one).  However when I attempt to list posts (using 
>> *gapi.client.blogger.posts.list*) it fails, returning "Forbidden".
>>
>> I have had the same experience using the Google APIs Explorer, with Oauth 
>> turned on.  It too lists my blogs, but fails on ...posts.list() and 
>> ..pages.list().
>>
>> Any pointers would be appreciated.
>>
>> Brian
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/bloggerdev.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Brett Morgan | Developer Relations Engineer, Google Maps | 
> [email protected] <javascript:> | profiles.google.com/brettmorgan
>  

-- 
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.