Blogging and News Syndication Software

Blogger API, RSS API, Atom API, and more.
posts - 17, comments - 14, trackbacks - 26

My Links

News

Tortuga Components / Software Tools Home

See Also: Chilkat Software

Article Categories

Archives

Post Categories

Recommended

Technorati OutboundQuery not working?

This article contains sample code for the OutboundQuery request, which is supposed to let you see what blogs are linked to on a given blog. However, I have found that the query does not work properly, and may be a Technorati problem. I have reported the problem here:

Technorati Bug Reports

Here is the sampe code:




// Technorati OutboundQuery C# Example Source Code
Tortuga.Technorati tech = new Tortuga.Technorati();
    
// An API key is required.  You can get the Technorati API Key
// from http://www.technorati.com/developers/
tech.Key = "e6123d555555555555110cf2a5e3b83";
    
// OutboundQuery lets you see what blogs are linked to on a given blog.
// This example will retrieve the blogs linked to by geekswithblogs.net
Tortuga.Rss rss = tech.OutboundQuery("http://www.geekswithblogs.net/");
if (rss == null) 
{
    MessageBox.Show(tech.RawQueryResponse);
}
else
{
    // Success! Let's get some information...
    // The RSS response always has a single channel.  The information will 
    // be contained within the channel.
    Tortuga.Rss channel = rss.GetChannel(0);
	
    // Iterate over the blogs linking to our target blog:
    int i;
    for (i=0; i<channel.NumItems; i++)
    {
	Tortuga.Rss item = channel.GetItem(i);
	    
	string blogTitle = item.GetString("title");
	string blogUrl = item.GetString("link");
	    
	listBox1.Items.Add(blogTitle);
	listBox1.Items.Add(blogUrl);
	listBox1.Items.Add("----");
    }
	
    // The RSS response is also available in the RawQueryResponse property.
    textBox1.Text = tech.RawQueryResponse;
}
    

Print | posted on Thursday, September 29, 2005 12:35 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: