namespace TimeTrex_Test_API
static void Main(string[] args)
var client = new RestClient("https://demo.timetrex.com/next-release/api/json/api.php?Class=APIAuthentication&Method=registerAPIKey");
var request = new RestRequest(Method.POST);
request.AlwaysMultipartFormData = true;
request.AddParameter("json", "{\"0\":\"demoadmin1\",\"1\":\"demo\"}");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);