authenticated user.
On Sep 16, 2010, at 4:00 PM, Ken Perkins <kenjperkins@gmail.com> wrote:
> Hi all,
>
> I'm hoping to leverage the blogger api to expose a blog that is
> published by users within my web-app. I don't have an explicit
> guarantee that they will all have blogger/openid accounts, so I was
> hoping to impersonate them when I post to the blog via the .net API:
>
> Here's the code snippet:
>
> AtomEntry newPost = new AtomEntry();
> newPost.Title.Text = "Marriage!";
> newPost.Authors.Add(new AtomPerson(AtomPersonType.Author,
> "John Doe"));
> newPost.Content = new AtomContent();
> newPost.Content.Content = "<div xmlns='http://www.w3.org/
> 1999/xhtml'>" +
> "<p>Mr. Darcy has <em>proposed marriage</em> to me!</p>"
> +
> "<p>He is the last man on earth I would ever desire to
> marry.</p>" +
> "<p>Whatever shall I do?</p>" +
> "</div>";
> newPost.Content.Type = "xhtml";
>
> Uri blogFeedUri = new Uri(myBlog);
> AtomEntry createdEntry = s.Insert(blogFeedUri, newPost);
>
> The problem is that the post is stored as the authenticated user, and
> I'd prefer to be able to tell the API what "user" to show the content
> was authored from. Is this doable?
>
> --
> 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