C#
C# - RestSharp
1
var client = new RestClient("https://pickyassist.com/app/api/v2/push");
2
var request = new RestRequest(Method.POST);
3
request.AddHeader("content-type", "application/json");
4
request.AddParameter("application/json", "{\"token\":\"c2a0b6221c5dd55ceb09ae1f74e46521756d\",\"priority \":0,\"application\":\"2\",\"sleep\":0,\"globalmessage\":\"\",\"globalmedia\":\"\",\"data\":[{\"number\":\"1212\",\"message\":\"Test\"}]}", ParameterType.RequestBody);
5
IRestResponse response = client.Execute(request);
Copied!
Last modified 2yr ago
Copy link