Send Message
Send Message
Send message only
Endpoint : https://medan.velita.id/api/create-message
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://console.fastwa.com/api/create-message',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'appkey' => 'd4b6203d-d3a8-40e9-92c0-1fb927651329',
'authkey' => 'HA57wrkH9dfXWuCUYuqLQqwmkOuIegmyydm1kgMc4fz6dsOhJx',
'to' => 'RECEIVER_NUMBER',
'message' => 'Example message',
'sandbox' => 'false'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;Response
200
{
"message_status": "Success",
"data": {
"from": "6281376214---",
"to": "628218530----",
"status_code": 200
}
}
```PreviousPHPNextSend Message With File
Last updated 3 months ago
Last updated