PHP code example of sashalenz / binotel-api
1. Go to this page and download the library: Download sashalenz/binotel-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/ */
sashalenz / binotel-api example snippets
return [
'url' => env('BINOTEL_API_URL', 'https://api.binotel.com/api/'),
'version' => env('BINOTEL_API_VERSION', '4.0'),
'format' => env('BINOTEL_API_FORMAT', 'json'),
'key' => env('BINOTEL_API_KEY', null),
'secret' => env('BINOTEL_API_SECRET', null),
'actions' => [
'apiCallSettings' => \Sashalenz\Binotel\Actions\ApiCallSettings::class,
'apiCallCompleted' => \Sashalenz\Binotel\Actions\ApiCallCompleted::class,
'receivedTheCall' => \Sashalenz\Binotel\Actions\ReceivedTheCall::class,
'answeredTheCall' => \Sashalenz\Binotel\Actions\AnsweredTheCall::class,
'hangupTheCall' => \Sashalenz\Binotel\Actions\HangupTheCall::class
],
'customer_class' => null,
'employee_class' => null,
'pbx_class' => null,
'domain' => env('BINOTEL_API_DOMAIN', env('APP_URL'))
];
$customersList = Sashalenz\Binotel\Binotel::customers()->list();
bash
php artisan vendor:publish --provider="Sashalenz\Binotel\BinotelServiceProvider" --tag="binotel-api-migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="Sashalenz\Binotel\BinotelServiceProvider" --tag="binotel-api-config"