/// <summary>Authenticate an account</summary> public async Task <string> PostAuthenticationRawAsync(AuthenticationPostAuthenticationRequest request) { HttpResponseMessage response = await Client.HttpClient.TruePostAsJsonAsync("auth", request); response.EnsureSuccessStatusCode(); return(SaveToken(await response.Content.ReadAsStringAsync()));; }
/// <summary>Authenticate an account</summary> public AuthenticationPostAuthenticationResponse PostAuthentication(AuthenticationPostAuthenticationRequest request) { var reply = PostAuthenticationAsync(request); reply.Wait(); return(reply.Result); }
/// <summary>Authenticate an account</summary> public string PostAuthenticationRaw(AuthenticationPostAuthenticationRequest request) { var reply = PostAuthenticationRawAsync(request); reply.Wait(); return(reply.Result); }