I need to have a service that get all templates from WBP
To do this, I used postman and the templates has been retieved
So I copied the code, from postam, and I put it into a console application
But when I execute the application, nothing happen
There is something wrong in the code?
private async Task estraiHttp()
{
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://graph.facebook.com/****/message_templates");
request.Headers.Add("Authorization", "****");
request.Headers.Add("Cookie", "ps_l=1; ps_n=1");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
thankyou
I tried to retrieve the templates but it does not work