$url = "https://invoice.zoho.com/api/v3/".$this->service."?authtoken=".$this->authtoken."&organization_id=".$this->organization_id."&JSONString=".$this->json_data; $curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);//Set to return data to string ($response)
curl_setopt($curl, CURLOPT_POST, TRUE);//Regular post
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: multipart/form-data") );
//curl_setopt($curl, CURLOPT_POSTFIELDS, "JSONString=".$this->json_data);