A simple .NET client for communication with the StatusCake website monitoring service API.
The StatusCakeClient library is incredibly simple to use. It supports two authentication options. You can either use the constructor to pass the username or password like so:
var statusCakeClient = new StatusCakeClient("MyUsername", "MyAccessKey");
or simply update your appSettings section in the configuration file with the following keys:
<appSettings>
<add key="StatusCake.Client.Username" value="MyUsername"/>
<add key="StatusCake.Client.AccessKey" value="MyAccessKey"/>
</appSettings>
Get test list:
var statusCakeClient = new StatusCakeClient();
var tests = await statusCakeClient.GetTestsAsync();
Get test details:
var statusCakeClient = new StatusCakeClient();
var tests = await statusCakeClient.GetTestsAsync();
var testDetails = await statusCakeClient.GetTestDetailsAsync(tests[0].TestID);