PHP code example of ricardoapaes / whaticket-api
1. Go to this page and download the library: Download ricardoapaes/whaticket-api 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/ */
ricardoapaes / whaticket-api example snippets
$api = new Api('WHATICKET_BASEURL', 'WHATICKET_TOKEN');
$api->sendMessage('NUMBER', 'Whaticket api test', 'WHATICKET_WHATSAPP_ID or null');
$api = new Api('WHATICKET_BASEURL', 'WHATICKET_TOKEN');
$api->sendMedia('NUMBER', 'SRC_MEDIA', 'WHATICKET_WHATSAPP_ID or null');