PHP code example of chatopera / sdk
1. Go to this page and download the library: Download chatopera/sdk 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/ */
chatopera / sdk example snippets
d = "YOUR CLIENT ID";
$secret = "YOUR SECRET";
$chatbot = new Chatopera\SDK\Chatbot($appId, $secret);
print_r($chatbot->command("GET", "/"));
./vendor/bin/phpunit --bootstrap vendor/autoload.php test/ChatbotTest.php