Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $api_postdata = "number=082129632854&message=assalamualikum";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://virtualin.id/api.php");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $api_postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- print_r(json_decode($chresult));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement