1. Home
  2. Docs
  3. Dokumentasi API
  4. Update Schedule Message

Update Schedule Message


$curl = curl_init();
$token = "";
$schedule_id = "";
$data = [
    'phone' => '081XXXXXXX',
    'message' => 'hi',
    'date' => '2019-01-22',
    'time' => '14:30',

curl_setopt($curl, CURLOPT_HTTPHEADER,
        "Authorization: $token",
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_URL, "http://app.absen.co.id/api/schedule/$schedule_id");
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
$result = curl_exec($curl);

echo "<pre>";

Request parameters:
AuthorizationRequiredYour Token from http://app.absen.co.id, can be seen in the menu: Device – Setting
phoneRequiredWhatsapp numbers that will receive messages. You can use the country code prefix or not. Example: 081223xxxx
messageRequiredtext format: UTF-8 or UTF-16 string. for newline (\n)
dateRequiredset the date when the message will be sent.
timeRequiredset the time when the message will be sent.