I am writing a ASP.net using C# code targeting to send a WhatsApp message when I run it, by browsing a link and this link send a message once browsed. so I started using the WhatsApp cloud API and it provided me with this text but I don't know how to use it. Note:i tried using the link written between the text but it didn't run properly
curl -i -X POST `
https://graph.facebook.com/v14.0/104958105698690/messages `
-H 'Authorization: Bearer EABOoKYETUE4BANvFhvdZAX2udBdrHQ8ZBGJQjX2GJUskGlZCpRf17WZB4Etks1SMA2uGCBZAEl0cZB9Rw57hMpB6CPZCZCU9wIWYZCzsoxGcztZBkJHyNd1A8LZCIq5QFz1h6oLVLeacnpDAG05nhKkli43beAd6pDnrh5sKhnoOsIqzvK7uQXtLgZCENGH7wbUmtKfXOOb6ZAZBq7vA6Om78FVTKb' `
-H 'Content-Type: application/json' `
-d '{ \"messaging_product\": \"whatsapp\", \"to\": \"\", \"type\": \"template\", \"template\": { \"name\": \"hello_world\", \"language\": { \"code\": \"en_US\" } } }'
I have used many API's and it worked properly because they give me a direct link to use in my code unlike WhatsApp API which gives me this text above.
here is the code I am using to send the message but i want a link to put inside HttpWebRequest.Create(" ")
WebRequest request = HttpWebRequest.Create(" ");
WebResponse response = request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string urltext = reader.ReadToEnd();
Thanks in advance.