C#

C# - RestSharp

var client = new RestClient("https://pickyassist.com/app/api/v2/push");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"token\":\"c2a0b6221c5dd55ceb09ae1f74e46521756d\",\"priority \":0,\"application\":\"2\",\"sleep\":0,\"globalmessage\":\"\",\"globalmedia\":\"\",\"data\":[{\"number\":\"1212\",\"message\":\"Test\"}]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated