Lompat ke konten

Kirim pesan button via API whacenter

berikut script kirim pesan button via API whacenter (harus versi multidevice)

<?php
$url = 'https://app.whacenter.com/api/sendButton';

$ch = curl_init($url);

$wa_no = '085640206067';
$wa_text = 'isi text';
$button = 'hai,halo,hola';

$data = array(
    'device_id' => 'your_device_id',
    'number' => $wa_no,
    'message' => $wa_text,
    'button' => $button,
);
$payload = $data;
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
>?

Powered by BetterDocs

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan.