I am trying to make a remote api call but I don’t get any response.
$url = 'https://projectsapi.zoho.com/
portal/jspotless/api/private/json/add?authtoken=myAuthToken';
$vars = array(
'projTitle' => ’test',
'projDesc' => ’test'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($ch);
I am using the authToken as per the Zoho Projects API instructions as I am a Google Apps user
Any ideas on what am doing wrong here? Thanks!