PHP code example of lozemc / simple-bitrix24-api
1. Go to this page and download the library: Download lozemc/simple-bitrix24-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/ */
lozemc / simple-bitrix24-api example snippets
use Lozemc\B24;
bitrix24.ru/rest/1/0jdfg12ukk104oxf/ - Вебхук из настроек интеграций в Bitrix24
// Хук состоит из домена, ID пользователя и токена
$subdomain = 'subdomain.bitrix24.ru';
$user_id = 1;
$token = '0jdfg12ukk104oxf';
$b24 = B24::init($user_id, $subdomain, $token)
$response = $b24->getLead(123);
print_r($response);
/*
Array
(
[result] => Array
(
[ID] => 3
[TITLE] => Lead Name New
....
[time] => Array
(
[start] => 1717135411.1906
[finish] => 1717135411.227
[duration] => 0.036404848098755
[processing] => 0.014520168304443
[date_start] => 2024-05-31T09:03:31+03:00
[date_finish] => 2024-05-31T09:03:31+03:00
[operating_reset_at] => 1717136011
[operating] => 0
)
*/