Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $token = "b4b643cb1547b52057fxrf15336158188a"; // masukkan token anda
- $passkey = "juyxx"; // masukkan passkey anda
- $message ="isi pesan"; // masukkan isi pesan
- $number ="085760525722"; // masukkan no hp
- $nama = "bondand"; // nama di phone book
- $ch = curl_init();
- $fields = array(
- 'token'=>$token,
- 'aksi'=>'1', // aksi = 1 kirim sms , aksi = 2 cek saldo dan masa aktif , aksi = 3 lihat sms outbox , aksi = 4 add phone book
- 'pesan'=> $message,
- 'hp'=>$number,
- 'passkey'=> $passkey,
- 'nama'=> $nama,
- );
- $postvars = json_encode($fields);
- $url = "http://purindo.net/api/sms.php";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
- $result = curl_exec($ch);
- //echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment