<?php

/** 
 * This is an example.
 * Here you can learn how to get a contact by using a custom field.
 * 
 * @author José A. Muriano <*****@*****.**>
 * 
 */
require_once '../vendor/autoload.php';
use PHPRedmineAPI\RedmineAPI;
/**
 * @var RedmineAPI 
 */
$api = new RedmineAPI('https://185.8.244.222', 'xml', true);
$api->setAuthenticationByAPIKey('f7ff7db66117124dbdb317710638363dc5b236b5');
$contact = $api->getContacts('all', ['cf_4' => 1462]);
var_dump($contact);