PHP code example of iprit / botan-php
1. Go to this page and download the library: Download iprit/botan-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/ */
iprit / botan-php example snippets
private $token = 'token';
public function _incomingMessage($message_json) {
$messageObj = json_decode($message_json, true);
$messageData = $messageObj['message'];
$botan = new IPRIT\BotanSDK\Botan($this->token);
$botan->track($messageData, 'Start');
}
$ php composer.phar
"iprit/botan-php": "*"