Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Can you post comments via the .NET library?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff M  
View profile  
 More options Nov 16 2006, 11:28 am
From: "Jeff M" <jeff.m...@gmail.com>
Date: Thu, 16 Nov 2006 08:28:45 -0800
Local: Thurs, Nov 16 2006 11:28 am
Subject: Can you post comments via the .NET library?
I have two questions:

1. Can you post comments via the .NET library?

2. If so, does anyone have any code snippets?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Nov 16 2006, 12:16 pm
From: "Frank Mantek" <fman...@gmail.com>
Date: Thu, 16 Nov 2006 18:16:21 +0100
Local: Thurs, Nov 16 2006 12:16 pm
Subject: Re: [bloggerDev] Can you post comments via the .NET library?

I don't have code snippets, but what you need to do, if i understand this
correctly:

-> get your normal feed
-> get the comment feed link out of the link collection
-> post to that feed

So that should be pretty straight forward... Are you having problems?

Frank Mantek

On 11/16/06, Jeff M <jeff.m...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff M  
View profile  
 More options Nov 16 2006, 2:35 pm
From: "Jeff M" <jeff.m...@gmail.com>
Date: Thu, 16 Nov 2006 11:35:14 -0800
Local: Thurs, Nov 16 2006 2:35 pm
Subject: Re: Can you post comments via the .NET library?
Here is a code snippet I am using

// I assume this is my main feed. It works for posting
Uri uri = new Uri("http://beta.blogger.com/feeds/<blogid>/posts/full");

// establish service
Google.GData.Client.Service service = new Service("blogger",
"bloggerApplication");
service.Credentials = new NetworkCredential("<login>", "<password>");

// build query to fetch last post
FeedQuery query = new FeedQuery();
query.Uri = uri;
query.NumberToRetrieve = 1;

// execute query and get results
AtomFeed feed = service.Query(query);

if (feed.Entries.Count > 0)
{
    // here is the post where I wish to add my comment
    AtomEntry post = feed.Entries[0];

    // create comment. I don't know if this is correct
    AtomEntry comment = new AtomEntry();
    comment.Title.Text = "Test comment";
    comment.Content.Content = "Test comment";
    comment.Updated = DateTime.Now;
    comment.Published = DateTime.Now;
    AtomPerson person = new AtomPerson();
    person.Name = "John Doe";
    comment.Authors.Add(person);

    // there are 3 links in the post.Links property but they all fail
    // none of them indicate they are for comments
    // service.Insert(new
Uri("http://<blogname>.blogspot.com/2006/11/<posttitle>.html"),
comment);
    // service.Insert(new
Uri("http://www.blogger.com/feeds/<blogid>/posts/full/<postid>"),
comment);
    // service.Insert(new
Uri("http://www.blogger.com/feeds/<blogid>/posts/full/<postid>"),
comment);

    // I tried some alternatives but they all failed also
    // service.Insert(new
Uri("http://beta.blogger.com/feeds/<blogid>/posts/full/<postid>"),
comment);
    // service.Insert(new
Uri("http://beta.blogger.com/feeds/<blogid>/posts/full/<postid>/comments/full"),
comment);
    // service.Insert(new
Uri("http://www.blogger.com/feeds/<blogid>/posts/full/<postid>/comments/full"),
comment);
    // service.Insert(new
Uri("http://<blogname>.blogspot.com/feeds/<postid>/comments/default"),
comment);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Hopkins ☠  
View profile  
 More options Nov 16 2006, 3:03 pm
From: "Pete Hopkins ☠" <phopk...@google.com>
Date: Thu, 16 Nov 2006 12:03:41 -0800
Local: Thurs, Nov 16 2006 3:03 pm
Subject: Re: [bloggerDev] Re: Can you post comments via the .NET library?

>     // service.Insert(new
> Uri("http://<blogname>.blogspot.com/feeds/<postid>/comments/default"),
> comment);

This last one is the correct comments feed. We don't officially
support posting comments via the API, though I believe it should work.

-- Pete


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Nov 16 2006, 3:18 pm
From: "Frank Mantek" <fman...@gmail.com>
Date: Thu, 16 Nov 2006 21:18:12 +0100
Local: Thurs, Nov 16 2006 3:18 pm
Subject: Re: [bloggerDev] Re: Can you post comments via the .NET library?

So what is the http response you are getting on the last one?

Frank Mantek

On 11/16/06, Pete Hopkins ☠ <phopk...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff M  
View profile  
 More options Nov 16 2006, 3:08 pm
From: "Jeff M" <jeff.m...@gmail.com>
Date: Thu, 16 Nov 2006 12:08:18 -0800
Local: Thurs, Nov 16 2006 3:08 pm
Subject: Re: Can you post comments via the .NET library?
None of the uri's I posted worked. So it must not work. Since its not
supported I won't spend any more time on it.

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff M  
View profile  
 More options Nov 16 2006, 3:40 pm
From: "Jeff M" <jeff.m...@gmail.com>
Date: Thu, 16 Nov 2006 12:40:22 -0800
Local: Thurs, Nov 16 2006 3:40 pm
Subject: Re: Can you post comments via the .NET library?
Well it seems to be working now.  I was getting an http response code
of 400 or 402.

On the other hand, maybe I need to take a break :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mantek  
View profile  
 More options Nov 17 2006, 3:05 am
From: "Frank Mantek" <fman...@gmail.com>
Date: Fri, 17 Nov 2006 09:05:31 +0100
Local: Fri, Nov 17 2006 3:05 am
Subject: Re: [bloggerDev] Re: Can you post comments via the .NET library?

Ah. The magic of networked computing saved the day again.

Glad to hear it's working now.

Frank

On 11/16/06, Jeff M <jeff.m...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory  
View profile  
 More options Nov 17 2006, 3:11 am
From: "Gregory" <gregorys...@gmail.com>
Date: Fri, 17 Nov 2006 08:11:08 -0000
Local: Fri, Nov 17 2006 3:11 am
Subject: Re: Can you post comments via the .NET library?
I tried this and it does work. However, the Name and URL of posted
comments was not the ones set by 'author', but the user used for login.
As a result, the author of every comment would be the blog's host
himself...

Well, this method could be fairly useful, especially for the situation
like me. I and most of my visitors cannot access beta.blogger.com
directly from the Internet connection we're using. By this way I can
deploy a servlet on my server to submit comments as a proxy.

Although it's not officially supported, it would be great if it could
work correctly, as it can already help me a lot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Hopkins ☠  
View profile  
 More options Nov 17 2006, 12:37 pm
From: "Pete Hopkins ☠" <phopk...@google.com>
Date: Fri, 17 Nov 2006 09:37:26 -0800
Local: Fri, Nov 17 2006 12:37 pm
Subject: Re: [bloggerDev] Re: Can you post comments via the .NET library?
On 11/17/06, Gregory <gregorys...@gmail.com> wrote:

> I tried this and it does work. However, the Name and URL of posted
> comments was not the ones set by 'author', but the user used for login.
> As a result, the author of every comment would be the blog's host
> himself...

> Well, this method could be fairly useful, especially for the situation
> like me. I and most of my visitors cannot access beta.blogger.com
> directly from the Internet connection we're using. By this way I can
> deploy a servlet on my server to submit comments as a proxy.

> Although it's not officially supported, it would be great if it could
> work correctly, as it can already help me a lot.

Thanks for your feedback. This is something we will consider when/if
we officially support posting to the comments feed.

-- Pete


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Dinn  
View profile  
 More options Jan 12 2007, 11:23 pm
From: "Steve Dinn" <steved...@gmail.com>
Date: Sat, 13 Jan 2007 04:23:16 -0000
Local: Fri, Jan 12 2007 11:23 pm
Subject: Re: Can you post comments via the .NET library?
I am looking for a way to do exactly this as well.  I am attempting to
migrate an existing blog of mine (including comments) to a blogger
blog.  I am currently able to get my posts to migrate over, but I have
not been successfully able to post a comment through code yet.

I just found out about this GData .NET API...I had hacked something
together using the assemblies from Windows Live Writer :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »