$user_online_set = http_build_query(
array(
'filter' => [
"EMAIL" => "test@test.ru"
],
)
);
$curlUser = curl_init();
curl_setopt_array($curlUser, array(
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $user_online_url,
CURLOPT_POSTFIELDS => $user_online_set,
));
$resultUserSet= curl_exec($curlUser);
curl_close($curlUser);
$resultUserSet= json_decode($resultUserSet, 1);
?>
<pre>
<?print_r($resultUserSet);?>
</pre>
<?
$queryData = http_build_query(array(
"fields" => [
"TITLE" => "ТЕСТОВЫЙ ЛИД",
"NAME" => "ТЕСТОВЫЙ ЛИД",
"ASSIGNED_BY_ID" => "43",
"PHONE" => [
"n0" => [
"VALUE" => "+8888888888",
"VALUE_TYPE" => "MOBILE",
],
],
"STATUS_ID" => "UC_Y99ICR",
],
//'params' => array("REGISTER_SONET_EVENT" => "Y");
));