Java

Java Using OkHttp Library

OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"token\":\"c2a0b6221c5dd55ceb09ae1f74e46521756d\",\"priority \":0,\"application\":\"2\",\"sleep\":0,\"globalmessage\":\"\",\"globalmedia\":\"\",\"data\":[{\"number\":\"1212\",\"message\":\"Test\"}]}");
Request request = new Request.Builder()
.url("https://pickyassist.com/app/api/v2/push")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();

Java Using Unirest Library

HttpResponse<String> response = Unirest.post("https://pickyassist.com/app/api/v2/push")
.header("content-type", "application/json")
.body("{\"token\":\"c2a0b6221c5dd55ceb09ae1f74e46521756d\",\"priority \":0,\"application\":\"2\",\"sleep\":0,\"globalmessage\":\"\",\"globalmedia\":\"\",\"data\":[{\"number\":\"1212\",\"message\":\"Test\"}]}")
.asString();