Wiki

Clone wiki

Etz.Api / HTTP API

HTTP API

Documentation

Online documentation can be found here

The documentation fully details the operations that can be called and their respective request and response objects.

Creating a Bearer Token

To use the API, you will need a Bearer token. See Bearer Tokens. Note that the use of Auth0 Tokens is set to be obsolete in March 2019.

The generated token string will need to be added to the Bearer authentication header on the request object.

The code snippet below shows how you could do this using the HttpClient.

Note the <tokenString> placeholder. This should be replaced with your previously generated token string.

#!c#
var httpClient = new HttpClient { BaseAddress = new Uri("https://api.timesheetz.net/v1/") };
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
httpClient.SetBearerToken(**<tokenString>**)

Updated