Some code for easy access of the GeckoBoard Push API using C#.
To install GeckoBoard Push, run the following command in the Package Manager Console
PM> Install-Package CSharpGeckoBoardPush
using(var geckoboard = new Geckoboard("your-api-key"))
{
var myWidget = geckoboard.GetWidget("widget-key");
// Number and secondary stat. See geckoboard documentation for alternatives
var data = new
{
item = new object[]
{
new
{
value = 5723,
text = "Total paying customers"
}
}
};
await myWidget.Push(data);
}
Geckoboard custom widgets documentation: https://developer.geckoboard.com/