Example adding a phonebook entry

<?php
$phonebook['NAME']="Employee";
$phonebook['PHONE1']="0612349876";

$url = "https://api.tring.nu/pbx/proxyapi.php?key=[KEY]&reqtype=PHONEBOOK&subreqtype=add&phonebook=[Telefoonboek]&tenant=[TENANT]";
$resource = curl_init();
curl_setopt($resource, CURLOPT_URL, $url);
curl_setopt($resource, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($resource, CURLOPT_VERBOSE, true);
curl_setopt($resource, CURLOPT_POSTFIELDS, "values=".urlencode(json_encode($phonebook)));
$data = curl_exec($resource);
curl_close($resource);

print_r($data);

?>