PHP code example of ay4t / watzap-id
1. Go to this page and download the library: Download ay4t/watzap-id library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ay4t / watzap-id example snippets
$sendText = new \Ay4t\WatzapId\SendText();
$sendText->setApiKey('YOUR-API-KEY');
$sendText->setNumberKey('YOUR-NUMBER-KEY');
$sendText->setPhone('6285791555506');
$sendText->setMessage('isi pesan Anda');
$result = $sendText->result();
var_dump($result);