5 messages in com.googlegroups.bloggerdevRe: AtomPerson
FromSent OnAttachments
Jenx88016 Jan 2008 20:32 
Jeff Scudder18 Jan 2008 10:46 
Thomas A. Jenkins18 Jan 2008 10:54 
Jenx88022 Jan 2008 08:18 
Jeff Scudder24 Jan 2008 14:34 
Subject:Re: AtomPerson
From:Jeff Scudder (j.@google.com)
Date:01/24/2008 02:34:00 PM
List:com.googlegroups.bloggerdev

Apologies for the slow response. When you are using the API, the author element is always set to the name of the currently authenticated user. The quickest solution would probably be to allow your authors to login and authorize your page using AuthSub, this way their names would appear.

Cheers,

Jeff

On Jan 22, 8:18 am, Jenx880 <jenk@gmail.com> wrote:

Anyone got any suggestion? Thanks.

On Jan 18, 1:55 pm, "Thomas A. Jenkins" <jenk@gmail.com> wrote:

Thanks for the response. On my page I will have several blog posters. I have one page where they go to post a blog. On that page I have several text box/areas for post title, post text, tags, and name.

When I build the AtomEntry collection I am using the add atom person code.

AtomPerson person = new AtomPerson(); person.Name = bp.PostAuthor.ToString(); newPost.Authors.Add(person); AtomEntry createdEntry = service.Insert(u, newPost);

When the post is submitted the only person that is in the Authors collection is me. I am in there becuase in the blogger setting page under permissions is my name. Blog Authors 1 Author can post to this blog Tom {email} admin

I am using my credentials to authenicate and create the blog entry but I want the posters name to appear as the author of the blog not me the owner.

Thanks

On Jan 18, 2008 1:47 PM, Jeff Scudder <j.@google.com> wrote:

On Jan 16, 8:33 pm, Jenx880 <jenk@gmail.com> wrote:

In my insert new blog post I add use the api to add the poster name to the atomfeedentry. When I look at the query the result that is returned in the person collection is only one as it was before. The new poster was not added to the collection. However I dont want to add persons to the collection as I have a few going to post and need it for an "Authors" field for each individual post. Each post should only have one author and I dont cate if it stores it in index position 0 each time overwriting the previous name. Why is this not adding? Am I doing what I need to be doing?

Thanks

AtomPerson person = new AtomPerson(); person.Name = bp.PostAuthor.ToString(); newPost.Authors.Add(person); AtomEntry createdEntry = service.Insert(u, newPost);

I'm sorry Jenx880, but I'm not sure I understand what you are trying to do. (Maybe I need to drink some more coffee :) Did you want to change the author on an existing blog post? Or, was the problem that the server's response to the insert request contained a different author than the one you sent?

Thank you,

Jeff- Hide quoted text -

- Show quoted text -