PHP code example of fomvasss / bitrix24-api-hook

1. Go to this page and download the library: Download fomvasss/bitrix24-api-hook 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/ */

    

fomvasss / bitrix24-api-hook example snippets



$b24 = new \Fomvasss\Bitrix24ApiHook\Bitrix24('https://testhipertin.bitrix24.ru', 13, '9cybrkhzxxf28zl4');

// see "crm.lead.add"
$b24->crmLeadAdd([
	"fields" => [
		'TITLE' => 'New contacts fomr',
		'NAME' => 'Bob Dilan',
		'EMAIL' => [
			['VALUE' => '[email protected]',],
		],
		'PHONE' => [
			['VALUE' => '+74563214561']
		],
		'COMMENTS' => 'Hello World',
		'UF_CRM_1554454898781' => 'Kiev',
	],
	'params' => ["REGISTER_SONET_EVENT" => "Y"],
]);