I have an HttpClient that I am using for a REST API. However I am having trouble setting up the Authorization header. I need to set the header to the token I received from d
In net .core you can use
var client = new HttpClient(); client.SetBasicAuthentication(userName, password);
or
var client = new HttpClient(); client.SetBearerToken(token);