Replace number, type, message, instance id and access token accordingly.
1. Below is the sample code for php:
<?php
$number = '9199XXXXXXXX';
$type = 'text';
$message = 'test message';
$instance_id = '6616XXXXX';
$access_token = '661XXXXXX';
$url = 'https://whatsapponcloud.com/api/send?' . http_build_query([
'number' => $number,
'type' => $type,
'message' => $message,
'instance_id' => $instance_id,
'access_token' => $access_token,
]);
$response = file_get_contents($url);
if ($response === false) {
echo 'Error sending request';
} else {
echo 'API response: ' . $response;
}
?>