$postField = [
'authtoken' => ZOHO_AUTH_TOKEN,
'scope' => 'CampaignsAPI',
'version' => 1,
'resfmt' => 'JSON',
'listkey' => $_REQUEST['listKey'],
'contactinfo' => $zohoFormatedDataAsString
];
$curl_pointer = curl_init();
$url = 'https://campaigns.zoho.com/api/json/listsubscribe';
curl_setopt($curl_pointer, CURLOPT_URL, $url);
curl_setopt($curl_pointer, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl_pointer, CURLOPT_POSTFIELDS, $postField);
$result = curl_exec($curl_pointer); // The result is empty here !!!
$responseInfo = curl_getinfo($curl_pointer);
curl_close($curl_pointer);
Writer is a powerful online word processor, designed for collaborative work.