6 messages in com.googlegroups.bloggerdevRe: Problem about Blogger Data API ex...
FromSent OnAttachments
martin20 Mar 2007 00:52 
Pete Hopkins ☠21 Mar 2007 10:39 
martin22 Mar 2007 01:36 
Pete Hopkins ☠22 Mar 2007 11:23 
martin02 Apr 2007 06:51 
Pete Hopkins ☠02 Apr 2007 10:18 
Subject:Re: Problem about Blogger Data API example
From:martin (mart@gmail.com)
Date:04/02/2007 06:51:39 AM
List:com.googlegroups.bloggerdev

In order to find the right link tag i want, there are cases that i tried, and the corresponding output are shown as follow : (using the same code shown in this email)

1: output.Text = resultFeed.Entries.Count.ToString(); Output: 1

2: output.Text = resultFeed.Links.Count.ToString(); Output: 2

3: output.Text = resultFeed.Links[0].AbsoluteUri.ToString(); Output: http://www.blogger.com/feeds/700464276665/blogs (ps: the link is not accessable after input the password)

4: output.Text = resultFeed.Links[1].AbsoluteUri.ToString(); Output: http://www.blogger.com/feeds/700464276665/blogs (ps: the link is not accessable after input the password)

5: output.Text = resultFeed.Post.ToString(); Exception exists: Object reference not set to an instance of an object

6: output.Text = resultFeed.Id.AbsoluteUri.ToString(); Output: tag:blogger.com,1999:user-700464276665.blogs

7:output.Text = resultFeed.Links.ToString(); Output: Google.GData.Client.AtomLinkCollection

8: output.Text = resultFeed.Authors.ToString(); Output: Google.GData.Client.AtomPersonCollection

Here are the result that i tried, i think there must be mistake that i made, I hope the result may be helpful for you to know where i did wrong. Thanks for your kindly help

On Mar 23, 2:24 am, "Pete Hopkins ☠" <phop@google.com> wrote:

Make sure you're getting the right link tag from the blog entries. I think you're getting the self or edit link, and you want #post.

-- Pete

On 3/22/07, martin <mart@gmail.com> wrote:

Oh, let me describe what i want First the user press the button, then a list of user's blogs will be displayed in the rich text box "output"

For example (in the rich text box): http://abc.blogspot.com/feeds/posts/default http://bcd.blogspot.com/feeds/posts/default http://cde.blogspot.com/feeds/posts/default . . . . However, when i used the code shown in my previous post, I just grab a strange link that is quite different form my expectation, the link is:http://www.blogger.com/feeds/700464276665/blogs

After i got those user blogs, then i will try to access the content of those blogs (for example, to find the blog post which contains a specific string), but this is the next task i wanna do.

If there is anything that is unclear, i will try my best to explain it, and Thank for your kindly reply :)

On 3月22日, 上午1時39分, "Pete Hopkins ☠" <phop@google.com> wrote:

I don't understand. Please be clearer (with examples of output, etc.) about what you are seeing, and what you expect to see.

-- Pete

On 3/20/07, martin <mart@gmail.com> wrote:

Hello, I am doing a project that uses Blog content randomly in Blogger's bloggosphere. In order to access the Blog content, I try to use the Blogger DataAPI (C# client library), and Visual Stdio 2005 is used to build the program.

According to the Blogger example (titled: Get a list of user blog) provided, I have written a simple C# code in order to get a list of blog, so that i can extract content form those blog, the code is shown as follow: { FeedQuery myQuery = new FeedQuery(); Service myService = new Service("blogger", "blogger_app");

NetworkCredential nc = new NetworkCredential("XXXX", "XXXX"); myService.Credentials = nc;

myQuery.Uri = new Uri("http://www.blogger.com/feeds/default/ blogs");

AtomFeed resultFeed = myService.Query(myQuery);

output.Text = resultFeed.Links[0].AbsoluteUri.ToString(); } Once the user press a button, then above code will be excecuted, ("output" is just a rich text box that is used to show the link that the program grabs.)

After i execute the program, i just grab 2 same link: http://www.blogger.com/feeds/700464276665/blogs

These links are quite different from the example metafeed provided in the example. I wanna ask that, am i grab the wrong thing?? or i just used the wrong method???