Search This Site

Custom Search

Thursday, July 29, 2010

Re: [bloggerDev] Uploading images and videos to blog

Hi GSB,

Yes. Currently Blogger doesn't support image uploading through API. You should upload images to Picasa (or wherever), and embed that URL into the blog post.

You'll be able to see how to embed images in a post if you manually add an image using the post editor and see the generated HTML code.

Thanks,
Jinwoo

On Thu, Jul 29, 2010 at 12:09 PM, GSB <cgaryg@gmail.com> wrote:
Hello,

I am writing a desktop application using Qt which has the ability to
upload user's photos and videos to sharing websites.  I have done this
successfully with YouTube (which has the same Google API).  However, I
am not finding any good information about how to do this using Blogger
API. Questions:

Do I upload to Picassa first and then post the URL to Blogger? Where
is this documented?
How do I embed the image URL into the Blogger blog text so that the
image is displayed in the blog and not the URL text?

Any info appreciated
Thanks
GSB

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Uploading images and videos to blog

Hello,

I am writing a desktop application using Qt which has the ability to
upload user's photos and videos to sharing websites. I have done this
successfully with YouTube (which has the same Google API). However, I
am not finding any good information about how to do this using Blogger
API. Questions:

Do I upload to Picassa first and then post the URL to Blogger? Where
is this documented?
How do I embed the image URL into the Blogger blog text so that the
image is displayed in the blog and not the URL text?

Any info appreciated
Thanks
GSB

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Zend_Gdata_Entry not setting summary

I'm trying to save a summary to an blog entry and it does not seem to
be working using the zend gdata php client.
I also don't see any mention of summary in the blogger api protocol.

$service = new Zend_Gdata($gauthNamespace->gauthClient);

$query = new Zend_Gdata_Query('http://www.blogger.com/feeds/blogis/
posts/default/postid'
);
$entry = $service->getEntry($query);

$summary = new Zend_Gdata_App_Extension_Summary();
$summary->setText('testing summary');

$entry->setSummary($summary);
$entry->save();

according to the zend api docs a Zend_Gdata_Entry inherits from
Zend_Gdata_App_Extension_Entry and that has a summary field. it looks
like the summay entry is ignored. Is there a way to set the summary
on a blog post?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Wednesday, July 28, 2010

[bloggerDev] Re: set user prefs programmatically

Sure, it's on blogger.com page where I meant to automatically set some
preferences based on others the user enters, in order to simplify
user's input.

Jinwoo, could you please provide at least an idea of the time to be
expected for getdgets.Prefs.set() to be fixed for blogger gadgets?

Thanks.

On Jul 28, 11:45 pm, Jinwoo Lee <jin...@google.com> wrote:
> The only way to save gadget configuration is using the gadget config page on
> blogger.com. No programatic way so far. Sorry about that.
>
> Jinwoo
>
> On Wed, Jul 28, 2010 at 2:07 PM, Ultra <vba...@gmail.com> wrote:
> > Ok Jinwoo,
> > glad you are considering it for future at least.
>
> > In the meanwhile - is there any workaround to achieve the same,
> > without too much complication?
>
> > Thanks.
>
> > On Jul 28, 11:03 pm, Jinwoo Lee <jin...@google.com> wrote:
> > > Hi Ultra,
>
> > > I'm sorry but Blogger currently doesn't support getdgets.Prefs.set() yet.
> > > But it's on our TODO list.
>
> > > Thanks,
> > > Jinwoo
>
> > > On Tue, Jul 27, 2010 at 2:59 PM, Ultra <vba...@gmail.com> wrote:
> > > > Hi.
> > > > Facing 1 issue with a Blogger gadget, for which your help is much
> > > > needed.
>
> > > > Need to set programmatically some user preferences based on other user
> > > > preferences - which works perfectly for iGoogle via a simple method:
> > > > gadgets.Prefs.set(). Unfortunately it appears that gadgets.Prefs.set()
> > > > doesn't work for gadgets on Blogger (reported in this group's
> > > > discussions).
>
> > > > Please assist with a solution, or a simple working example.
>
> > > > Thanks in advance.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: set user prefs programmatically

The only way to save gadget configuration is using the gadget config page on blogger.com. No programatic way so far. Sorry about that.

Jinwoo

On Wed, Jul 28, 2010 at 2:07 PM, Ultra <vbatcu@gmail.com> wrote:
Ok Jinwoo,
glad you are considering it for future at least.

In the meanwhile - is there any workaround to achieve the same,
without too much complication?

Thanks.

On Jul 28, 11:03 pm, Jinwoo Lee <jin...@google.com> wrote:
> Hi Ultra,
>
> I'm sorry but Blogger currently doesn't support getdgets.Prefs.set() yet.
> But it's on our TODO list.
>
> Thanks,
> Jinwoo
>
> On Tue, Jul 27, 2010 at 2:59 PM, Ultra <vba...@gmail.com> wrote:
> > Hi.
> > Facing 1 issue with a Blogger gadget, for which your help is much
> > needed.
>
> > Need to set programmatically some user preferences based on other user
> > preferences - which works perfectly for iGoogle via a simple method:
> > gadgets.Prefs.set(). Unfortunately it appears that gadgets.Prefs.set()
> > doesn't work for gadgets on Blogger (reported in this group's
> > discussions).
>
> > Please assist with a solution, or a simple working example.
>
> > Thanks in advance.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: set user prefs programmatically

Ok Jinwoo,
glad you are considering it for future at least.

In the meanwhile - is there any workaround to achieve the same,
without too much complication?

Thanks.

On Jul 28, 11:03 pm, Jinwoo Lee <jin...@google.com> wrote:
> Hi Ultra,
>
> I'm sorry but Blogger currently doesn't support getdgets.Prefs.set() yet.
> But it's on our TODO list.
>
> Thanks,
> Jinwoo
>
> On Tue, Jul 27, 2010 at 2:59 PM, Ultra <vba...@gmail.com> wrote:
> > Hi.
> > Facing 1 issue with a Blogger gadget, for which your help is much
> > needed.
>
> > Need to set programmatically some user preferences based on other user
> > preferences - which works perfectly for iGoogle via a simple method:
> > gadgets.Prefs.set(). Unfortunately it appears that gadgets.Prefs.set()
> > doesn't work for gadgets on Blogger (reported in this group's
> > discussions).
>
> > Please assist with a solution, or a simple working example.
>
> > Thanks in advance.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] set user prefs programmatically

Hi Ultra,

I'm sorry but Blogger currently doesn't support getdgets.Prefs.set() yet. But it's on our TODO list.

Thanks,
Jinwoo

On Tue, Jul 27, 2010 at 2:59 PM, Ultra <vbatcu@gmail.com> wrote:
Hi.
Facing 1 issue with a Blogger gadget, for which your help is much
needed.

Need to set programmatically some user preferences based on other user
preferences - which works perfectly for iGoogle via a simple method:
gadgets.Prefs.set(). Unfortunately it appears that gadgets.Prefs.set()
doesn't work for gadgets on Blogger (reported in this group's
discussions).

Please assist with a solution, or a simple working example.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, July 27, 2010

[bloggerDev] set user prefs programmatically

Hi.
Facing 1 issue with a Blogger gadget, for which your help is much
needed.

Need to set programmatically some user preferences based on other user
preferences - which works perfectly for iGoogle via a simple method:
gadgets.Prefs.set(). Unfortunately it appears that gadgets.Prefs.set()
doesn't work for gadgets on Blogger (reported in this group's
discussions).

Please assist with a solution, or a simple working example.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Sunday, July 25, 2010

[bloggerDev] Help with labels / Scheduling

Hi, can someone help me with labels? Whats is the code to retrieve the
labels of a post? D you have / can rpovide a working example ? Also,
how do I schedule a post for publishing? Please provide example,

Best Regards
Mustra

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Help with labels

Hi, I'm new to php programming, claases and objects are concepts that
I barely grasp if at all, yet I'm crazy enough to dive into the Gdata
API. I need help, I'm getting the feeling that the Gdata api for
blogger is very bad, at least for me.

I'm having a major problem with labels, how do I add labels and
retrieve labels from a post?

function printFeed($feed)
{
$i = 0;
foreach($feed->entries as $entry)
{
// echo "\t" . $i ." ". $entry->title->text . "\n";
echo "". $entry->title->text ."".$entry->getCategory()."<br/>";
$i++;
}
}

The only thing this does, is print the word "Array" next to the blog
post title, how do I loop torugh this array?

Best Regards
Jdvno

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, July 23, 2010

Re: [bloggerDev] Re: I can't send post via API

Sorry about that, but I believe it will get better.

And glad that you found a workaround.

Thanks,
Jinwoo

On Fri, Jul 23, 2010 at 2:55 PM, tleroy <contact@arobass.com> wrote:
I created my blogger account with an email I've created with Google
App for domain.
I think the problem come from that and I think it's a big constraint
for Google App for domain users.

Thank you for the speed of your responses.

On 23 juil, 23:38, Jinwoo Lee <jin...@google.com> wrote:
> I'm not sure why your previous account didn't work. Are you using the same
> email address as your Blogger account and your Google Apps account? Then
> that may be the cause.
>
> Jinwoo
>
> On Fri, Jul 23, 2010 at 2:20 PM, tleroy <cont...@arobass.com> wrote:
> > I've created a new Account with an email not linked to a Google App
> > account.
> > I invited it to the blog as author and with this account I can create
> > new post in my blog.
>
> > Is it a bug or it's wanted? If it's wanted I don't understand the
> > reason.
>
> > Thanks.
>
> > On 23 juil, 22:57, Jinwoo Lee <jin...@google.com> wrote:
> > > For public blogs, which most blogs are, anyone can read feeds. But only
> > > admins can manage (post, configurations, etc) blogs.
>
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 1:45 PM, tleroy <cont...@arobass.com> wrote:
> > > > but I can view my blogs with this code :
> > > >        URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
> > > > + "/blogs");
> > > >        Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
>
> > > > Maybe some actions are availlables?  Read only action perhaps.
> > > > I'll try from an account create with a gmail email and not an Google
> > > > App email to see.
>
> > > > Thank you for your help Jinwoo.
>
> > > > On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> > > > > Hi,
>
> > > > > If you used your Google Apps account password then you must have been
> > > > logged
> > > > > in as your Google Apps account. And that means that account doesn't
> > have
> > > > > permission to manage your blog. Blogger doesn't support Google Apps
> > > > account
> > > > > yet.
>
> > > > > I think you'd get better answers from Google Apps API forum (
> > > >http://www.google.com/support/forum/p/apps-apis) regarding this
> > question.
>
> > > > > Thanks,
> > > > > Jinwoo
>
> > > > > On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > > > > > Hi Jinwoo,
>
> > > > > > I've said Google App Engine but it's a Google App account I use to
> > > > > > manage my domain name.
> > > > > > I've created a blogger account with an email of my domain name and
> > > > > > managed by Google App.
>
> > > > > > So when I want to modify my blog with the web interface I use my
> > > > > > blogger account password that works, there is no problem.
> > > > > > But with the API, this password doesn't work but the email password
> > > > > > works (the password I use to read my emails in Google App ?!), I
> > don't
> > > > > > know if it's normal.
>
> > > > > > I had a similar problem to use Google App Engine to deploy an
> > > > > > application I have to use my Google App password and not the
> > password
> > > > > > of the Google App Engine account.
>
> > > > > > The use of Google App for your domain seems to change the behavior
> > of
> > > > > > google tools.
>
> > > > > > But I don't know if my current problem to create post come from
> > that.
>
> > > > > > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > > > > > Do you have one account for App Engine and another for Blogger?
> > It
> > > > seems
> > > > > > > that you're using your App Engine account where you should use
> > your
> > > > > > Blogger
> > > > > > > account. Please try to login on blogger.com using that account
> > and
> > > > check
> > > > > > > whether it works.
>
> > > > > > > Jinwoo
>
> > > > > > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com>
> > > > wrote:
> > > > > > > > Hi everybody,
>
> > > > > > > > I use this code :
>
> > > > > > > > GoogleService myService = new GoogleService("blogger", "");
> > > > > > > >        try {
> > > > > > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > > > > > >            createPost(myService, "8255690984818830283", "Blah
> > Blah
> > > > > > Blah",
> > > > > > > > "Blah Blah",  true);
> > > > > > > >        } catch (AuthenticationException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
> > > > > > > >        } catch (ServiceException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
>
> > > > > > > >        } catch (IOException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
> > > > > > > >        }
>
> > > > > > > > public static com.google.gdata.data.Entry
> > createPost(GoogleService
> > > > > > > > myService, String blogId, String title, String content,
> >  Boolean
> > > > > > > > isDraft) throws ServiceException, IOException {
> > > > > > > >        // Create the entry to insert
> > > > > > > >        com.google.gdata.data.Entry myEntry = new
> > > > > > > > com.google.gdata.data.Entry();
> > > > > > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > > > > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > > > > > >        myEntry.setDraft(isDraft);
> > > > > > > >        myEntry.setService(myService);
> > > > > > > >        // Ask the service to insert the new entry
> > > > > > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +
> > > >  blogId
> > > > > > +
> > > > > > > > "/
> > > > > > > > posts/default");
> > > > > > > >        return myService.insert(postUrl, myEntry);
> > > > > > > >    }
>
> > > > > > > > I get this error message :
> > > > > > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > > > > > User does not have permission to create new post
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > > > > > 596)
> > > > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > > > > > 563)
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > > > > > 550)
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > > > > > 530)
> > > > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > > > > > 535)
> > > > > > > >        at
> > com.google.gdata.client.Service.insert(Service.java:1409)
> > > > > > > >        at
> > > > > > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > > > > > 599)
>
> > > > > > > > Aa another thing is that authentication work if I use my App
> > Engine
> > > > > > > > pasword but not with my Blogger pasword I use to connect to the
> > web
> > > > > > > > interface. I don't if it's linked.
>
> > > > > > > > can you help me?
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "Blogger Developer Group" group.
> > > > > > > > To post to this group, send email to
> > bloggerdev@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
> > <bloggerdev%25252Bunsubscribe@googlegroups.com<bloggerdev%2525252Bunsubscribe@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Blogger Developer Group" group.
> > > > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: I can't send post via API

I created my blogger account with an email I've created with Google
App for domain.
I think the problem come from that and I think it's a big constraint
for Google App for domain users.

Thank you for the speed of your responses.

On 23 juil, 23:38, Jinwoo Lee <jin...@google.com> wrote:
> I'm not sure why your previous account didn't work. Are you using the same
> email address as your Blogger account and your Google Apps account? Then
> that may be the cause.
>
> Jinwoo
>
> On Fri, Jul 23, 2010 at 2:20 PM, tleroy <cont...@arobass.com> wrote:
> > I've created a new Account with an email not linked to a Google App
> > account.
> > I invited it to the blog as author and with this account I can create
> > new post in my blog.
>
> > Is it a bug or it's wanted? If it's wanted I don't understand the
> > reason.
>
> > Thanks.
>
> > On 23 juil, 22:57, Jinwoo Lee <jin...@google.com> wrote:
> > > For public blogs, which most blogs are, anyone can read feeds. But only
> > > admins can manage (post, configurations, etc) blogs.
>
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 1:45 PM, tleroy <cont...@arobass.com> wrote:
> > > > but I can view my blogs with this code :
> > > >        URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
> > > > + "/blogs");
> > > >        Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
>
> > > > Maybe some actions are availlables?  Read only action perhaps.
> > > > I'll try from an account create with a gmail email and not an Google
> > > > App email to see.
>
> > > > Thank you for your help Jinwoo.
>
> > > > On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> > > > > Hi,
>
> > > > > If you used your Google Apps account password then you must have been
> > > > logged
> > > > > in as your Google Apps account. And that means that account doesn't
> > have
> > > > > permission to manage your blog. Blogger doesn't support Google Apps
> > > > account
> > > > > yet.
>
> > > > > I think you'd get better answers from Google Apps API forum (
> > > >http://www.google.com/support/forum/p/apps-apis) regarding this
> > question.
>
> > > > > Thanks,
> > > > > Jinwoo
>
> > > > > On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > > > > > Hi Jinwoo,
>
> > > > > > I've said Google App Engine but it's a Google App account I use to
> > > > > > manage my domain name.
> > > > > > I've created a blogger account with an email of my domain name and
> > > > > > managed by Google App.
>
> > > > > > So when I want to modify my blog with the web interface I use my
> > > > > > blogger account password that works, there is no problem.
> > > > > > But with the API, this password doesn't work but the email password
> > > > > > works (the password I use to read my emails in Google App ?!), I
> > don't
> > > > > > know if it's normal.
>
> > > > > > I had a similar problem to use Google App Engine to deploy an
> > > > > > application I have to use my Google App password and not the
> > password
> > > > > > of the Google App Engine account.
>
> > > > > > The use of Google App for your domain seems to change the behavior
> > of
> > > > > > google tools.
>
> > > > > > But I don't know if my current problem to create post come from
> > that.
>
> > > > > > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > > > > > Do you have one account for App Engine and another for Blogger?
> > It
> > > > seems
> > > > > > > that you're using your App Engine account where you should use
> > your
> > > > > > Blogger
> > > > > > > account. Please try to login on blogger.com using that account
> > and
> > > > check
> > > > > > > whether it works.
>
> > > > > > > Jinwoo
>
> > > > > > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com>
> > > > wrote:
> > > > > > > > Hi everybody,
>
> > > > > > > > I use this code :
>
> > > > > > > > GoogleService myService = new GoogleService("blogger", "");
> > > > > > > >        try {
> > > > > > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > > > > > >            createPost(myService, "8255690984818830283", "Blah
> > Blah
> > > > > > Blah",
> > > > > > > > "Blah Blah",  true);
> > > > > > > >        } catch (AuthenticationException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
> > > > > > > >        } catch (ServiceException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
>
> > > > > > > >        } catch (IOException e) {
> > > > > > > >            // TODO Auto-generated catch block
> > > > > > > >            e.printStackTrace();
> > > > > > > >        }
>
> > > > > > > > public static com.google.gdata.data.Entry
> > createPost(GoogleService
> > > > > > > > myService, String blogId, String title, String content,
> >  Boolean
> > > > > > > > isDraft) throws ServiceException, IOException {
> > > > > > > >        // Create the entry to insert
> > > > > > > >        com.google.gdata.data.Entry myEntry = new
> > > > > > > > com.google.gdata.data.Entry();
> > > > > > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > > > > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > > > > > >        myEntry.setDraft(isDraft);
> > > > > > > >        myEntry.setService(myService);
> > > > > > > >        // Ask the service to insert the new entry
> > > > > > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +
> > > >  blogId
> > > > > > +
> > > > > > > > "/
> > > > > > > > posts/default");
> > > > > > > >        return myService.insert(postUrl, myEntry);
> > > > > > > >    }
>
> > > > > > > > I get this error message :
> > > > > > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > > > > > User does not have permission to create new post
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > > > > > 596)
> > > > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > > > > > 563)
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > > > > > 550)
> > > > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > > > > > 530)
> > > > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > > > > > 535)
> > > > > > > >        at
> > com.google.gdata.client.Service.insert(Service.java:1409)
> > > > > > > >        at
> > > > > > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > > > > > 599)
>
> > > > > > > > Aa another thing is that authentication work if I use my App
> > Engine
> > > > > > > > pasword but not with my Blogger pasword I use to connect to the
> > web
> > > > > > > > interface. I don't if it's linked.
>
> > > > > > > > can you help me?
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "Blogger Developer Group" group.
> > > > > > > > To post to this group, send email to
> > bloggerdev@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
> > <bloggerdev%25252Bunsubscribe@googlegroups.com<bloggerdev%2525252Bunsubscribe@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Blogger Developer Group" group.
> > > > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: I can't send post via API

I'm not sure why your previous account didn't work. Are you using the same email address as your Blogger account and your Google Apps account? Then that may be the cause.

Jinwoo

On Fri, Jul 23, 2010 at 2:20 PM, tleroy <contact@arobass.com> wrote:
I've created a new Account with an email not linked to a Google App
account.
I invited it to the blog as author and with this account I can create
new post in my blog.

Is it a bug or it's wanted? If it's wanted I don't understand the
reason.

Thanks.

On 23 juil, 22:57, Jinwoo Lee <jin...@google.com> wrote:
> For public blogs, which most blogs are, anyone can read feeds. But only
> admins can manage (post, configurations, etc) blogs.
>
> Jinwoo
>
> On Fri, Jul 23, 2010 at 1:45 PM, tleroy <cont...@arobass.com> wrote:
> > but I can view my blogs with this code :
> >        URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
> > + "/blogs");
> >        Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
>
> > Maybe some actions are availlables?  Read only action perhaps.
> > I'll try from an account create with a gmail email and not an Google
> > App email to see.
>
> > Thank you for your help Jinwoo.
>
> > On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> > > Hi,
>
> > > If you used your Google Apps account password then you must have been
> > logged
> > > in as your Google Apps account. And that means that account doesn't have
> > > permission to manage your blog. Blogger doesn't support Google Apps
> > account
> > > yet.
>
> > > I think you'd get better answers from Google Apps API forum (
> >http://www.google.com/support/forum/p/apps-apis) regarding this question.
>
> > > Thanks,
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > > > Hi Jinwoo,
>
> > > > I've said Google App Engine but it's a Google App account I use to
> > > > manage my domain name.
> > > > I've created a blogger account with an email of my domain name and
> > > > managed by Google App.
>
> > > > So when I want to modify my blog with the web interface I use my
> > > > blogger account password that works, there is no problem.
> > > > But with the API, this password doesn't work but the email password
> > > > works (the password I use to read my emails in Google App ?!), I don't
> > > > know if it's normal.
>
> > > > I had a similar problem to use Google App Engine to deploy an
> > > > application I have to use my Google App password and not the password
> > > > of the Google App Engine account.
>
> > > > The use of Google App for your domain seems to change the behavior of
> > > > google tools.
>
> > > > But I don't know if my current problem to create post come from that.
>
> > > > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > > > Do you have one account for App Engine and another for Blogger? It
> > seems
> > > > > that you're using your App Engine account where you should use your
> > > > Blogger
> > > > > account. Please try to login on blogger.com using that account and
> > check
> > > > > whether it works.
>
> > > > > Jinwoo
>
> > > > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com>
> > wrote:
> > > > > > Hi everybody,
>
> > > > > > I use this code :
>
> > > > > > GoogleService myService = new GoogleService("blogger", "");
> > > > > >        try {
> > > > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > > > >            createPost(myService, "8255690984818830283", "Blah Blah
> > > > Blah",
> > > > > > "Blah Blah",  true);
> > > > > >        } catch (AuthenticationException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
> > > > > >        } catch (ServiceException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
>
> > > > > >        } catch (IOException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
> > > > > >        }
>
> > > > > > public static com.google.gdata.data.Entry createPost(GoogleService
> > > > > > myService, String blogId, String title, String content,  Boolean
> > > > > > isDraft) throws ServiceException, IOException {
> > > > > >        // Create the entry to insert
> > > > > >        com.google.gdata.data.Entry myEntry = new
> > > > > > com.google.gdata.data.Entry();
> > > > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > > > >        myEntry.setDraft(isDraft);
> > > > > >        myEntry.setService(myService);
> > > > > >        // Ask the service to insert the new entry
> > > > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +
> >  blogId
> > > > +
> > > > > > "/
> > > > > > posts/default");
> > > > > >        return myService.insert(postUrl, myEntry);
> > > > > >    }
>
> > > > > > I get this error message :
> > > > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > > > User does not have permission to create new post
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > > > 596)
> > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > > > 563)
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > > > 550)
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > > > 530)
> > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > > > 535)
> > > > > >        at com.google.gdata.client.Service.insert(Service.java:1409)
> > > > > >        at
> > > > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > > > 599)
>
> > > > > > Aa another thing is that authentication work if I use my App Engine
> > > > > > pasword but not with my Blogger pasword I use to connect to the web
> > > > > > interface. I don't if it's linked.
>
> > > > > > can you help me?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Blogger Developer Group" group.
> > > > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: I can't send post via API

I've created a new Account with an email not linked to a Google App
account.
I invited it to the blog as author and with this account I can create
new post in my blog.

Is it a bug or it's wanted? If it's wanted I don't understand the
reason.

Thanks.

On 23 juil, 22:57, Jinwoo Lee <jin...@google.com> wrote:
> For public blogs, which most blogs are, anyone can read feeds. But only
> admins can manage (post, configurations, etc) blogs.
>
> Jinwoo
>
> On Fri, Jul 23, 2010 at 1:45 PM, tleroy <cont...@arobass.com> wrote:
> > but I can view my blogs with this code :
> >        URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
> > + "/blogs");
> >        Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
>
> > Maybe some actions are availlables?  Read only action perhaps.
> > I'll try from an account create with a gmail email and not an Google
> > App email to see.
>
> > Thank you for your help Jinwoo.
>
> > On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> > > Hi,
>
> > > If you used your Google Apps account password then you must have been
> > logged
> > > in as your Google Apps account. And that means that account doesn't have
> > > permission to manage your blog. Blogger doesn't support Google Apps
> > account
> > > yet.
>
> > > I think you'd get better answers from Google Apps API forum (
> >http://www.google.com/support/forum/p/apps-apis) regarding this question.
>
> > > Thanks,
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > > > Hi Jinwoo,
>
> > > > I've said Google App Engine but it's a Google App account I use to
> > > > manage my domain name.
> > > > I've created a blogger account with an email of my domain name and
> > > > managed by Google App.
>
> > > > So when I want to modify my blog with the web interface I use my
> > > > blogger account password that works, there is no problem.
> > > > But with the API, this password doesn't work but the email password
> > > > works (the password I use to read my emails in Google App ?!), I don't
> > > > know if it's normal.
>
> > > > I had a similar problem to use Google App Engine to deploy an
> > > > application I have to use my Google App password and not the password
> > > > of the Google App Engine account.
>
> > > > The use of Google App for your domain seems to change the behavior of
> > > > google tools.
>
> > > > But I don't know if my current problem to create post come from that.
>
> > > > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > > > Do you have one account for App Engine and another for Blogger? It
> > seems
> > > > > that you're using your App Engine account where you should use your
> > > > Blogger
> > > > > account. Please try to login on blogger.com using that account and
> > check
> > > > > whether it works.
>
> > > > > Jinwoo
>
> > > > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com>
> > wrote:
> > > > > > Hi everybody,
>
> > > > > > I use this code :
>
> > > > > > GoogleService myService = new GoogleService("blogger", "");
> > > > > >        try {
> > > > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > > > >            createPost(myService, "8255690984818830283", "Blah Blah
> > > > Blah",
> > > > > > "Blah Blah",  true);
> > > > > >        } catch (AuthenticationException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
> > > > > >        } catch (ServiceException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
>
> > > > > >        } catch (IOException e) {
> > > > > >            // TODO Auto-generated catch block
> > > > > >            e.printStackTrace();
> > > > > >        }
>
> > > > > > public static com.google.gdata.data.Entry createPost(GoogleService
> > > > > > myService, String blogId, String title, String content,  Boolean
> > > > > > isDraft) throws ServiceException, IOException {
> > > > > >        // Create the entry to insert
> > > > > >        com.google.gdata.data.Entry myEntry = new
> > > > > > com.google.gdata.data.Entry();
> > > > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > > > >        myEntry.setDraft(isDraft);
> > > > > >        myEntry.setService(myService);
> > > > > >        // Ask the service to insert the new entry
> > > > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +
> >  blogId
> > > > +
> > > > > > "/
> > > > > > posts/default");
> > > > > >        return myService.insert(postUrl, myEntry);
> > > > > >    }
>
> > > > > > I get this error message :
> > > > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > > > User does not have permission to create new post
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > > > 596)
> > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > > > 563)
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > > > 550)
> > > > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > > > 530)
> > > > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > > > 535)
> > > > > >        at com.google.gdata.client.Service.insert(Service.java:1409)
> > > > > >        at
> > > > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > > > 599)
>
> > > > > > Aa another thing is that authentication work if I use my App Engine
> > > > > > pasword but not with my Blogger pasword I use to connect to the web
> > > > > > interface. I don't if it's linked.
>
> > > > > > can you help me?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Blogger Developer Group" group.
> > > > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
> > <bloggerdev%252Bunsubscribe@googlegroups.com<bloggerdev%25252Bunsubscribe@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Re: I can't send post via API

For public blogs, which most blogs are, anyone can read feeds. But only admins can manage (post, configurations, etc) blogs.

Jinwoo

On Fri, Jul 23, 2010 at 1:45 PM, tleroy <contact@arobass.com> wrote:
but I can view my blogs with this code :
       URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
+ "/blogs");
       Feed resultFeed = myService.getFeed(feedUrl, Feed.class);

Maybe some actions are availlables?  Read only action perhaps.
I'll try from an account create with a gmail email and not an Google
App email to see.

Thank you for your help Jinwoo.

On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> Hi,
>
> If you used your Google Apps account password then you must have been logged
> in as your Google Apps account. And that means that account doesn't have
> permission to manage your blog. Blogger doesn't support Google Apps account
> yet.
>
> I think you'd get better answers from Google Apps API forum (http://www.google.com/support/forum/p/apps-apis) regarding this question.
>
> Thanks,
> Jinwoo
>
> On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > Hi Jinwoo,
>
> > I've said Google App Engine but it's a Google App account I use to
> > manage my domain name.
> > I've created a blogger account with an email of my domain name and
> > managed by Google App.
>
> > So when I want to modify my blog with the web interface I use my
> > blogger account password that works, there is no problem.
> > But with the API, this password doesn't work but the email password
> > works (the password I use to read my emails in Google App ?!), I don't
> > know if it's normal.
>
> > I had a similar problem to use Google App Engine to deploy an
> > application I have to use my Google App password and not the password
> > of the Google App Engine account.
>
> > The use of Google App for your domain seems to change the behavior of
> > google tools.
>
> > But I don't know if my current problem to create post come from that.
>
> > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > Do you have one account for App Engine and another for Blogger? It seems
> > > that you're using your App Engine account where you should use your
> > Blogger
> > > account. Please try to login on blogger.com using that account and check
> > > whether it works.
>
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com> wrote:
> > > > Hi everybody,
>
> > > > I use this code :
>
> > > > GoogleService myService = new GoogleService("blogger", "");
> > > >        try {
> > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > >            createPost(myService, "8255690984818830283", "Blah Blah
> > Blah",
> > > > "Blah Blah",  true);
> > > >        } catch (AuthenticationException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
> > > >        } catch (ServiceException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
>
> > > >        } catch (IOException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
> > > >        }
>
> > > > public static com.google.gdata.data.Entry createPost(GoogleService
> > > > myService, String blogId, String title, String content,  Boolean
> > > > isDraft) throws ServiceException, IOException {
> > > >        // Create the entry to insert
> > > >        com.google.gdata.data.Entry myEntry = new
> > > > com.google.gdata.data.Entry();
> > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > >        myEntry.setDraft(isDraft);
> > > >        myEntry.setService(myService);
> > > >        // Ask the service to insert the new entry
> > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +  blogId
> > +
> > > > "/
> > > > posts/default");
> > > >        return myService.insert(postUrl, myEntry);
> > > >    }
>
> > > > I get this error message :
> > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > User does not have permission to create new post
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > 596)
> > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > 563)
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > 550)
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > 530)
> > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > 535)
> > > >        at com.google.gdata.client.Service.insert(Service.java:1409)
> > > >        at
> > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > 599)
>
> > > > Aa another thing is that authentication work if I use my App Engine
> > > > pasword but not with my Blogger pasword I use to connect to the web
> > > > interface. I don't if it's linked.
>
> > > > can you help me?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: I can't send post via API

but I can view my blogs with this code :
URL feedUrl = new URL("http://www.blogger.com/feeds/" + userId
+ "/blogs");
Feed resultFeed = myService.getFeed(feedUrl, Feed.class);

Maybe some actions are availlables? Read only action perhaps.
I'll try from an account create with a gmail email and not an Google
App email to see.

Thank you for your help Jinwoo.

On 23 juil, 22:32, Jinwoo Lee <jin...@google.com> wrote:
> Hi,
>
> If you used your Google Apps account password then you must have been logged
> in as your Google Apps account. And that means that account doesn't have
> permission to manage your blog. Blogger doesn't support Google Apps account
> yet.
>
> I think you'd get better answers from Google Apps API forum (http://www.google.com/support/forum/p/apps-apis) regarding this question.
>
> Thanks,
> Jinwoo
>
> On Fri, Jul 23, 2010 at 1:04 PM, tleroy <cont...@arobass.com> wrote:
> > Hi Jinwoo,
>
> > I've said Google App Engine but it's a Google App account I use to
> > manage my domain name.
> > I've created a blogger account with an email of my domain name and
> > managed by Google App.
>
> > So when I want to modify my blog with the web interface I use my
> > blogger account password that works, there is no problem.
> > But with the API, this password doesn't work but the email password
> > works (the password I use to read my emails in Google App ?!), I don't
> > know if it's normal.
>
> > I had a similar problem to use Google App Engine to deploy an
> > application I have to use my Google App password and not the password
> > of the Google App Engine account.
>
> > The use of Google App for your domain seems to change the behavior of
> > google tools.
>
> > But I don't know if my current problem to create post come from that.
>
> > On 23 juil, 20:21, Jinwoo Lee <jin...@google.com> wrote:
> > > Do you have one account for App Engine and another for Blogger? It seems
> > > that you're using your App Engine account where you should use your
> > Blogger
> > > account. Please try to login on blogger.com using that account and check
> > > whether it works.
>
> > > Jinwoo
>
> > > On Fri, Jul 23, 2010 at 11:13 AM, tleroy <cont...@arobass.com> wrote:
> > > > Hi everybody,
>
> > > > I use this code :
>
> > > > GoogleService myService = new GoogleService("blogger", "");
> > > >        try {
> > > >            myService.setUserCredentials("xxxx", "xxxx");
> > > >            createPost(myService, "8255690984818830283", "Blah Blah
> > Blah",
> > > > "Blah Blah",  true);
> > > >        } catch (AuthenticationException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
> > > >        } catch (ServiceException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
>
> > > >        } catch (IOException e) {
> > > >            // TODO Auto-generated catch block
> > > >            e.printStackTrace();
> > > >        }
>
> > > > public static com.google.gdata.data.Entry createPost(GoogleService
> > > > myService, String blogId, String title, String content,  Boolean
> > > > isDraft) throws ServiceException, IOException {
> > > >        // Create the entry to insert
> > > >        com.google.gdata.data.Entry myEntry = new
> > > > com.google.gdata.data.Entry();
> > > >        myEntry.setTitle(new PlainTextConstruct(title));
> > > >        myEntry.setContent(new PlainTextConstruct(content));
> > > >        myEntry.setDraft(isDraft);
> > > >        myEntry.setService(myService);
> > > >        // Ask the service to insert the new entry
> > > >        URL postUrl = new URL("http://www.blogger.com/feeds/" +  blogId
> > +
> > > > "/
> > > > posts/default");
> > > >        return myService.insert(postUrl, myEntry);
> > > >    }
>
> > > > I get this error message :
> > > > com.google.gdata.util.AuthenticationException: Unauthorized
> > > > User does not have permission to create new post
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> > > > 596)
> > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> > > > 563)
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> > > > 550)
> > > >        at
>
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> > > > 530)
> > > >        at
>
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> > > > 535)
> > > >        at com.google.gdata.client.Service.insert(Service.java:1409)
> > > >        at
> > com.google.gdata.client.GoogleService.insert(GoogleService.java:
> > > > 599)
>
> > > > Aa another thing is that authentication work if I use my App Engine
> > > > pasword but not with my Blogger pasword I use to connect to the web
> > > > interface. I don't if it's linked.
>
> > > > can you help me?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Blogger Developer Group" group.
> > > > To post to this group, send email to bloggerdev@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > <bloggerdev%2Bunsubscribe@googlegroups.com<bloggerdev%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/bloggerdev?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.