A .NET client for the SparkCore Cloud API
SparkClient client = new SparkClient("[access token]", "[device id]");
Device Info
SparkDevice deviceInfo = client.GetDevice();
Variables and Functions
SparkResult temperatureResult = client.GetVariable("temperature");
SparkReult brewResult = client.ExecuteFunction("brew","202","230");
Convenience Methods
decimal temperature = client.GetVariableReturnValue<decimal>("temperature");
int returnValue = client.ExecuteFunctionReturnValue("brew","202","230");