mattiasnordqvist / CSharp-GeckoBoard-Push

Push data to your custom Geckoboard widgets from C#
MIT License
0 stars 1 forks source link

GeckoBoard Push

Some code for easy access of the GeckoBoard Push API using C#.

Install

To install GeckoBoard Push, run the following command in the Package Manager Console

PM> Install-Package CSharpGeckoBoardPush

Use

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/