Content
You are here:
conect API whit PHP
Added by Jose Luis Esparza about 7 years ago
i want to know how can conect with PHP this is my source
@
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘apikey’=>‘sajghdfjjagdhsfxxxxxxxx’));
curl_setopt($ch, CURLOPT_URL, ‘http://url/api/v3/projects/97/queries/default?pageSize=200&showHierarchies=true’);
$result = curl_exec($ch);@
but i can´t
Replies (1)
resolved this whit this line
@ curl_setopt($ch, CURLOPT_HTTPHEADER, array(“Authorization: Basic ”.base64_encode(‘apikey:895755dsghsXXXSsdXXXXXXX’)));@