Text Messages

Send Text Messages

$KeyID = 'xxxxxx-f9e0-4e71-a06e-xxxxxxxxxx';
$url = 'https://io.wakit.id/api/messages/send-text';

$data = array(
"to" => 'Recipient number',
"message" => 'The message you want to send',
);

$data_string = json_encode($data);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'device-key: ' . $KeyID,
'Content-Length: ' . strlen($data_string)
));
curl_exec($ch);
curl_close($ch);

POST https://io.wakit.id/api/messages/send-text

Headers

Name
Type
Description

device-key*

123123

Request Body

Name
Type
Description

to*

String

message*

String

Last updated

Was this helpful?