asas
<?php
$url = 'https://app.whacenter.com/api/send';
$ch = curl_init($url);
$nohp= '085640206067';
$pesan= 'halo bos';
$file = 'https://i.ibb.co/S5GYRNL/bird-thumbnail.jpg';
$data = array(
'device_id' => '3b767fb9327e640a7d7cd9f7b7b9d294',
'number' => $nohp,
'message' => $pesan,
'file' => $file,
);
$payload = $data;
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>
apakah support untuk kirim file local (file yang berada di komputer lokal)?
harus url / link online kak