1. Go to this page and download the library: Download volumnet/bitrix24 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/ */
volumnet / bitrix24 example snippets
/**
* @param string $domain Domain name, including protocol (i.e. https://domain.bitrix24.ru)
* @param string $login Login name
* @param string $password Password
*/
$ql = new QuickLead('https://domain.bitrix24.ru', 'login', 'password');
/**
* Send data to quick lead creation
* @param array $data Data in the following format: https://dev.1c-bitrix.ru/community/blogs/chaos/crm-sozdanie-lidov-iz-drugikh-servisov.php
* @return mixed Response
* @throws Exception exception with error code and message from remote url
*/
$ql->send(array(
'TITLE' => 'Test lead',
'COMPANY_TITLE' => 'Test company',
'NAME' => 'User',
'LAST_NAME' => 'Test',
'SECOND_NAME' => date('Hi'),
'ADDRESS' => 'Test address',
'PHONE_WORK' => '+7 999 000-00-00',
'EMAIL_WORK' => '[email protected]',
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.