C# Rest API Client sample code for login using HttpClient and IHttpClientFactory (prevent socket exhaustion) given login (post method) credentials (API key, username, password). Read JSON response (Token). Use Token to call Rest API methods to retrieve basic user account information.
api key
c# rest api client
httpclient and ihttpclientfactory
jsonresponse
login (post method) credentials
password
prevent socket exhaustion
rest api method to retrieve data
token
username
C# Rest API Client sample code for login using HttpClient and IHttpClientFactory given login (post method) credentials (API key, username, password). Read JSON response (Token).