$url = $link . "?api_key=" . $token . "&sender=" . $sender . "&number=" . $nomorwa . "&message=" . urlencode($isipesan);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$response_wa = curl_exec($curl);
if (curl_errno($curl)) {
$error_msg = curl_error($curl);
error_log('cURL error: ' . $error_msg);
}
curl_close($curl);
error_log('MPWA response: ' . print_r($response_wa, true));
}
}
itu mas, saya pake php