Skip to content

Instantly share code, notes, and snippets.

@denrad
denrad / bitrix24-crm.lead.php
Created October 3, 2018 13:09
bitrix webhooks: add,get,delete lead
<?php
//get the fields available to a lead
https://hoangweb-dev.bitrix24.com/rest/1/hnw8ye0l22f93im8/crm.lead.fields.json
/**
* Get lead
*/
$queryUrl = 'https://hoangweb-dev.bitrix24.com/rest/1/hnw8ye0l22f93im8/crm.lead.get.json';
$queryData = http_build_query(array( //send post data
'id' => 2