// --- Get responce --
var http = new HttpClient();
var byteArrayToken = Encoding.ASCII.GetBytes(data.access_token.ToString());
http.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", Convert.ToBase64String(byteArrayToken));
var valuesRequest = new Dictionary<string, string>
{
{ "application", "json" },
};
var contentRequest = new FormUrlEncodedContent(valuesRequest);
var responseRequestString = await response.Content.ReadAsStringAsync();
The string responseRequestString should return the json string of the correct responce but it does not.
Thanks Luca.