Answer the question
In order to leave comments, you need to log in
How to get data from Webhook?
I have a webhook, when I call it it shows this >
[result] => Array
(
[0] => Array
(
[ID] => 63
[TITLE] => test
[TYPE_ID] =>
[STAGE_ID] => NEW
[PROBABILITY] =>
[CURRENCY_ID] => KZT
[OPPORTUNITY] =>
[IS_MANUAL_OPPORTUNITY] => N
[TAX_VALUE] =>
[LEAD_ID] =>
[COMPANY_ID] => 0
[CONTACT_ID] =>
[QUOTE_ID] =>
[BEGINDATE] => 2021-06-05T03:00:00+03:00
[CLOSEDATE] =>
[ASSIGNED_BY_ID] => 1
[CREATED_BY_ID] => 1
[MODIFY_BY_ID] => 1
[DATE_CREATE] => 2021-06-05T18:29:46+03:00
[DATE_MODIFY] => 2021-06-05T18:29:46+03:00
[OPENED] => N
[CLOSED] => N
[COMMENTS] =>
[ADDITIONAL_INFO] =>
[LOCATION_ID] =>
[CATEGORY_ID] => 0
[STAGE_SEMANTIC_ID] => P
[IS_NEW] => Y
[IS_RECURRING] => N
[IS_RETURN_CUSTOMER] => N
[IS_REPEATED_APPROACH] => N
[SOURCE_ID] =>
[SOURCE_DESCRIPTION] =>
[ORIGINATOR_ID] =>
[ORIGIN_ID] =>
[UTM_SOURCE] =>
[UTM_MEDIUM] =>
[UTM_CAMPAIGN] =>
[UTM_CONTENT] =>
[UTM_TERM] =>
)
<?php
$queryUrl = 'https://b24-6rmr3o.bitrix24.kz/rest/1/**********/crm.deal.list';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $queryUrl,
CURLOPT_POSTFIELDS => $queryData,
));
$result = curl_exec($curl);
curl_close($curl);
echo "<pre>";
print_r($result);
print_r(json_decode($result, true));
echo "</pre>";
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question