This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Primero buscamos por el GB. | |
<?php | |
//Buscamos el contacto por el código GB | |
$url = "https://intranetglobalbox.com/rest/1/u6zuop15vvt5ordk/crm.contact.list.json?filter[UF_CRM_1523389025]=".$gb; | |
?> | |
Luego imprimimos el JSON y obtemos el ID de Bitrix24 de ese usuario GB. | |
<?php | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CModule::IncludeModule("socialnetwork"); | |
$res1 = array(); | |
$res = CSocNetGroup::GetList( | |
$arOrder = array("ID" => "DESC"), | |
$arFilter = array("CLOSED" => "N"), | |
$arGroupBy = false, | |
$arNavStartParams = false, | |
$arSelectFields = array() |