PHP code example of zapply / zapply-php
1. Go to this page and download the library: Download zapply/zapply-php 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/ */
zapply / zapply-php example snippets
use Zapply\Zapply;
$zapply = new Zapply([
'base_uri' => 'YOUR DEVICE URL',
'bearer_token' => 'YOUR API KEY',
'channel_id' => 'YOUR DEVICE ID',
]);
$response = $zapply->chat('552199999999')->sendMessage([
'recipient_type' => 'individual',
'type' => 'text',
'message' => [
'body' => 'Hello World!',
]
])
bash
composer