Zoho Projects API with CURL help

Zoho Projects API with CURL help

Hi,

I am trying to make a remote api call but I don’t get any response.

Here’s the php code I am using to test with:

$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!