FreePBXact docking CRM API interface appears unauthorized access

Hello:

anyone helps me by ?Configured CRM API settings and CRM API environment in FreePBXact,I try the CRM API, but my app shows this error:

Forbidden

You don’t have permission to access /admin/api/sangomacrm/rest/calls/list on this server.


php code(copy from your demo):

<?php

$ch = curl_init();

curl_setopt($ch,

CURLOPT_URL,"http://192.168.1.113/admin/api/sangomacrm/rest/calls/lis

t");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$headers = array(

'Token:

e6fa6b1e1e8502bb3d42892f2b13835f4398d2a3cb8378a5dbad5c80f8e20d0e’

);

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$output = curl_exec($ch);

curl_close($ch);

echo $output ;

?>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.