Skip to content

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

License

Notifications You must be signed in to change notification settings

DejanPelzel/statuscake.client

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages