i was trying to receive the response after API call without success. tha API call needs header. this is my code:
private static readonly string url = "https://evtradepro.net/wp-json/mp/v1/me";
public static async Task<string> Authorization()
{
var request = new HttpRequestMessage();
request.RequestUri = new Uri(url);
var client = new HttpClient();
client.DefaultRequestHeaders.Add("MEMBERPRESS-API-KEY: WWWWWWWW", "application/json");
var response = await client.SendAsync(request);
HttpContent content = response.Content;
string mycontent = await content.ReadAsStringAsync();
return mycontent;
}