<?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.