Re: API call to pull draft posts

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

Is this still not possible with the Blogger JSON API (v3), particularly 
when used via the"google-api-objectivec-client-read-only" library? I've 
been trying to retrieve all post types by doing the following:

[query.JSON setValue:[NSArray arrayWithObjects:@"draft", @"live", 
@"scheduled", nil] forKey:@"statuses"];

But this results in the following error:
Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation 
couldn’t be completed. (Forbidden)" UserInfo=0x1469d9e0 {error=Forbidden, 
GTLStructuredError=GTLErrorObject 0x145860b0: {message:"Forbidden" code:403 
data:[1]}, NSLocalizedFailureReason=(Forbidden)}

Also, I can't do it via the "Try it" page either:
https://developers.google.com/blogger/docs/3.0/reference/posts/list#try-it

Basically, if I set any "statuses" other than "live", then I get a "403 
Forbidden" error.

What version of the API should we be using if we want to work with all Post 
and Page types, and client library should we be using? I notice that one of 
our competitors is using " GData-ObjectiveC", but this doesn't seem to be 
available anymore? For example, a Google search for the GData library 
brings up the following page:
http://code.google.com/p/gdata-objectivec-client/

Which states that:
"This library should *no longer* be used for these APIs"

And that:
"Blogger (superseded by a JSON API<http://code.google.com/p/google-api-objectivec-client/>) 
"

Kind Regards,
DM


On Wednesday, February 8, 2012 12:50:20 AM UTC, Brett Morgan wrote:
>
> Hi Bill,
>
> I believe the Blogger GData API<http://code.google.com/apis/gdata/docs/2.0/basics.html>should enable you to retrieve the data you want. The Blogger JSON API 
> currently doesn't expose draft posts.
>
> brett
>
> On Wed, Feb 8, 2012 at 11:08 AM, billsanderson <[email protected]<javascript:>
> > wrote:
>
>> I want to build a calendar for scheduled and draft post that show on
>> a  google calendar.  Wordpress has a plug in that shows your schedule
>> post in month calendar format.   Has anyone done this and can point me
>> there.  or suggest how to pull the future and draft out via API
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Blogger Developer Group" group.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/bloggerdev?hl=en.
>>
>>
>
>
> -- 
>
> Brett Morgan
>
> Developer Relations Engineer, Blogger
>
> 

-- 
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/groups/opt_out.
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.