public Response.Authentication Authenticate(string username, string password, string licenceDescription)
 {
     string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/authenticatedUsers/login";
     string method = "PUT";
     //string data = "{\"password\": \"" + password + "\",\"username\": \"" + username + "\",\"licenceDescription\": \"" + licenceDescription + "\"}";
     Request.Authentication authentication = new Request.Authentication();
     authentication.username = username;
     authentication.password = password;
     authentication.licenceDescription = licenceDescription;
     string data = JsonConvert.SerializeObject(authentication);
     return JsonConvert.DeserializeObject<Response.Authentication>(Call(service, method, data, false));
 }
        public Response.Authentication Authenticate(string username, string password, string licenceDescription)
        {
            string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/authenticatedUsers/login";
            string method  = "PUT";

            //string data = "{\"password\": \"" + password + "\",\"username\": \"" + username + "\",\"licenceDescription\": \"" + licenceDescription + "\"}";
            Request.Authentication authentication = new Request.Authentication();
            authentication.username           = username;
            authentication.password           = password;
            authentication.licenceDescription = licenceDescription;
            string data = JsonConvert.SerializeObject(authentication);

            return(JsonConvert.DeserializeObject <Response.Authentication>(Call(service, method, data, false)));
        }