Skip to content

Instantly share code, notes, and snippets.

@TechWatching
Last active January 28, 2020 13:09
Show Gist options
  • Save TechWatching/31e420ab21227bad3702a8a103984644 to your computer and use it in GitHub Desktop.
Save TechWatching/31e420ab21227bad3702a8a103984644 to your computer and use it in GitHub Desktop.
var body = new { login = "login", password = "password" };
var response = await _httpClient.PostAsync("login", new StringContent(JsonConvert.SerializeObject(body)));
var authResponse = await response.Content.ReadAsAsync<AuthResponse>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment