Hi I' m doing a get request using c#. I'm using the below code. I can't seem to fetch data. What am I doing wrong?
public async Task
var request = new HttpRequestMessage(HttpMethod.Post, uri);
request.Headers.Add("X-Parse-Application-Id", "Private");
request.Headers.Add("X-Parse-REST-API-Key", "AlsoPrivate");
var client = new HttpClient();
var response = await client.SendAsync(request);
return response.Content.ReadAsStringAsync().Result;
}
Thanks Arif
worked when I used over to restSharp client