1. Go to this page and download the library: Download alexgivi/php-bil24-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/ */
alexgivi / php-bil24-api example snippets
use bil24api\Client;
$client = new Client([
'fid' => 1111, // ваш frontend id в системе bil24
'token' => '23dfd343dfdd34dfd', // ваш токен в системе bil24
// если есть данные пользователя, для использования методов, требующих авторизации
'userId' => 111,
'sessionId' => '23dfd343dfdd34dfd',
]);
$moscowId = null;
$cities = $client->getCities();
foreach ($cities->cityList as $city) {
if ($city->cityName == 'Москва') {
$moscowId = $city->cityId;
}
}
$venues = $client->getVenueList($moscowId);
foreach ($venues->venueList as $venue) {
// ...
}
composer
"alexgivi/bil24-php-api": "*"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.