Cara kirim pesan text ke Group WA via API whacenter

<?php

$url = 'https://app.whacenter.com/api/sendGroup';

$ch = curl_init($url);

$pesan= 'halo bos';

$data = array(
    'device_id' => '3b767fb9327e640a7d7cd9f7b7b9d294',
    'group' => 'Larva Media',
    'message' => $pesan,
   
);
$payload = $data;
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>

Ganti device id dengan device id Anda.

Powered by BetterDocs

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *