I just want to Fetch all the contacts data with address using php curl
Asked
Active
Viewed 914 times
-1
-
What have you tried so far? Stack Overflow is not a free code design and writing service. – Dragonthoughts Jun 09 '18 at 20:36
1 Answers
0
From the docs:
<?php
header("Content-type: application/xml");
$token="AUTHTOKEN";
$url = "https://crm.zoho.com/crm/private/xml/Leads/getRecords";
$param= "authtoken=".$token."&scope=crmapi";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
return $result;
?>

ied3vil
- 964
- 1
- 7
- 18