
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!");
}