Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("konak.php");
- $url = 'http://portalpulsa.com/api/connect/';
- $header = array(
- 'portal-userid: P',
- 'portal-key: bce', // lihat hasil autogenerate di member area
- 'portal-secret: d89f75e7e18', // lihat hasil autogenerate di member area
- );
- $data = array(
- 'inquiry' => 'STATUS', // konstan
- 'trxid_api' => '', // Ini diambil dari database web saya..
- );
- $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_HTTPHEADER, $header);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $result = curl_exec($ch);
- echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement