Skip to content

dluco-/CSharp-GeckoBoard-Push

 
 

Repository files navigation

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 PushApi

or maybe

PM> Install-Package CSharpGeckoBoardPush

Right now I'm not sure which one is correct... will look into it anytime soon.

Use

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/

About

Push data to your custom Geckoboard widgets from C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%