I have created a DLL that lets you access the Biy.ly API from within C#: Calls: MetaH - Retrieves the metadata from a hash string a = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "epicdiggnation", "MetaH"); Console.WriteLine(a); MetaU - Retrieves the metadata from a Short Url string b = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "http://bit.ly/1RmnUT", "MetaU"); Console.WriteLine(b); ExpandH - Returns the Expanded url from a hash string c = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "epicdiggnation", "ExpandH"); Console.WriteLine(c); ExpandU - Returns the Expanded url from a Short Url string d = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "http://bit.ly/1RmnUT", "ExpandU"); Console.WriteLine(d); Shorten - Shortens a long Url string e = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "http://cnn.com", "Shorten"); Console.WriteLine(e); ClicksH - Returns number of clicks from a hash string f = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "epicdiggnation", "ClicksH"); Console.WriteLine(f); ClicksU - Returns number of clicks from a Short Url string g = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "http://bit.ly/1RmnUT", "ClicksU"); Console.WriteLine(g); Console Application sample code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bitly; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string a = API.Bit("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07", "http://cnn.com", "Shorten"); Console.WriteLine(a); Console.Read(); } } } |