PHP code example of dr-white87 / skype-bot-php
1. Go to this page and download the library: Download dr-white87/skype-bot-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/ */
dr-white87 / skype-bot-php example snippets
use Skype\Client;
$client = new Client([
'clientId' => '<yourClientId>',
'clientSecret' => '<yourClientSecret>',
]);
$api = $client->authorize()->api('conversation'); // Skype\Api\Conversation
$api->activity('29:<skypeHash>', 'Your message');
$ composer
php skype.phar auth <yourClientId>
php skype.phar conversation:activity <to> <message>