Search This Site

Custom Search

Friday, July 23, 2010

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.

No comments:

Post a Comment