Skip to content

Instantly share code, notes, and snippets.

View GianPierree's full-sized avatar
🏠
Working from home

GP Muñoz Montoya GianPierree

🏠
Working from home
View GitHub Profile
@GianPierree
GianPierree / ListGroup
Last active October 4, 2017 20:58 — forked from gustvvo/ListGroup
Listar Grupos de trabajo.
CModule::IncludeModule("socialnetwork");
$res1 = array();
$res = CSocNetGroup::GetList(
$arOrder = array("ID" => "DESC"),
$arFilter = array("CLOSED" => "N"),
$arGroupBy = false,
$arNavStartParams = false,
$arSelectFields = array()
@GianPierree
GianPierree / globalbox.php
Last active June 19, 2018 20:16
Editar Contacto
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);