Last active
January 28, 2020 13:09
-
-
Save TechWatching/31e420ab21227bad3702a8a103984644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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