<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"data\": [\n {\n \"Company\": \"West Coast Riders Inc.\",\n \"Email\": \"
navin1@magento360.com\",\n \"Website\": \"
www.westcoastriders.com\",\n \"Full_Name\": \"Sean Collins\",\n \"Last_Name\": \"Collins\",\n \"Lead_Status\": \"Contact in Future\",\n \"Phone\": \"888-555-5674\"\n }\n ]\n}",
CURLOPT_HTTPHEADER => array(
"Accept: */*",
"Accept-Encoding: gzip, deflate",
"Authorization: Zoho-oauthtoken 1000.2019ceac829f234523d1a9465f636d49.8664d912bd029a4d950cea7f3ee896df",
"Cache-Control: no-cache",
"Connection: keep-alive",
"Content-Length: 348",
"Content-Type: application/json",
"Postman-Token: 8fe57649-aa19-434b-b808-3d9e54527589,615d3930-7b2a-4d00-a1f6-b19cbdd8aa6f",
"User-Agent: PostmanRuntime/7.20.1",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}