Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1009 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 1009 Bytes

StatusCake .NET Api Client

A simple .NET client for communication with the StatusCake website monitoring service API.

How to use:

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>

Examples:

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);