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 KeyInfo C# Example Source Code


C# sample code using "Tortugati", a .NET class library for the Technorati API.
The Tortuga .NET Component (Beta) can be downloaded from Tortuga .NET Component
The download contains an .NET class library (DLL) that needs to be referenced from your C# or VB.NET project.

This example sends a query to determine how many Technorati queries were used today, and how many queries remain for the day.


// Technorati KeyInfo 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 = "e6123d56bbbbbbb71bd110cf2a5e3b83";
    
// Simply call KeyInfo to populate the QueriesUsedToday and
// QueriesAvailable properties
bool success = tech.KeyInfo();

if (success) 
{
    int nUsed = tech.QueriesUsedToday;
    int nAvail = tech.QueriesAvailable;
    
    MessageBox.Show(Convert.ToString(nUsed) + ", " + Convert.ToString(nAvail));
}
else
{
    MessageBox.Show("Failed to get KeyInfo!");
}


Print | posted on Thursday, September 29, 2005 9:58 AM |

Feedback

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

Powered by: