Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2.   $api_postdata = "number=082129632854&message=assalamualikum";
  3.   $ch = curl_init();
  4.   curl_setopt($ch, CURLOPT_URL, "https://virtualin.id/api.php");
  5.   curl_setopt($ch, CURLOPT_POST, 1);
  6.   curl_setopt($ch, CURLOPT_POSTFIELDS, $api_postdata);
  7.   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8.   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  9.   $chresult = curl_exec($ch);
  10.   curl_close($ch);
  11.  print_r(json_decode($chresult));
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement