PHP code example of promopult / yandex-business-api
1. Go to this page and download the library: Download promopult/yandex-business-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/ */
promopult / yandex-business-api example snippets
$client = new \Promopult\YandexBusinessApi\Client(
new \Promopult\YandexBusinessApi\Config(getenv('__ACCESS_TOKEN__')),
new \GuzzleHttp\Client() // PSR-18 HTTP-client
);
$response = $client->pingping();
var_dump($response);
// array(1) {
// ["data"]=>
// string(8) "pongpong"
// }