Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $json = "
- {
- "phone_number": "628339606493",
- "message": "Hello World",
- "device_id": 94172
- }
- ";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://smsgateway.me/api/v4/message/send" );
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt($ch, CURLOPT_POST, 1 );
- curl_setopt($ch, CURLOPT_POSTFIELDS, "Content=$json" );
- curl_setopt($ch, CURLOPT_HTTPHEADER, "Authorization=eyJ0eXAiOiJKV1QiLCJhbkaIOiJIUzI1NiJ1" );
- $result=curl_exec ($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement