MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/public_html/imenso.co/dev/zoho/test.php
<!-- <button id="SOIBTN_inder" style="background: #006DAF; color: #ffffff; padding: 10px 20px; border: 1px solid #c8c8c8; font: bold 14px Arial; cursor: pointer;" data-height="580" data-psz="10" data-so-page="inder" data-delay="1" url="https://go.oncehub.com/PageLink?name=John&email=john@example.com&company=Example"   >Schedule an Appointment</button>
<script type="text/javascript" src="https://cdn.oncehub.com/mergedjs/so.js"></script> 
-->

<?php


/*
Client ID: 1000.L0GDGKMG7P6V8DBYSWF60RYH5MMGQV
Client Secret: 1a17829705988f4d07740706c64bc2b703e09ae8b6
*/

/*
Client ID successfully registered
Client ID: 1000.NBHTRIWROS5DWFVWO9MS507U6H99SV
Client Secret: 777ddfcfbcddb830f892f244fad6a13b36bd06668b*/

?>

<?php

$ch = curl_init('https://crm.zoho.in/crm/private/xml/Leads/insertRecords?');

curl_setopt($ch, CURLOPT_VERBOSE, 1);//standard i/o streams
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);// Turn off the server and peer verification
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//Set to return data to string ($response)
curl_setopt($ch, CURLOPT_POST, 1);//Regular post
//Set post fields
//this script is being proccessed by a form so I also put all of my $_POST['name'] variable here to be
//used in the $xmlData variable below

$authtoken = "6ab7086036264e69a40943a0526653b9";
$authtoken="4e2d5fbc459061d4d147d4d4d14c9621";
$xmlData = '<Leads>
<row no="1">
<FL val="SMOWNERID">2010</FL>
<FL val="First Name">Atul2111</FL>
<FL val="Last Name">jain2111</FL>
<FL val="Email">atul12341@gmail.com</FL>
</row>
</Leads>';

$xmlData2 = urlencode($xmlData);

$query = "newFormat=1&duplicateCheck=2&authtoken={$authtoken}&scope=ZohoCreator/creatorapi&xmlData={$xmlData2}";
curl_setopt($ch, CURLOPT_POSTFIELDS, $query);// Set the request as a POST FIELD for curl.

//echo $query;

//Execute cUrl session
$response = curl_exec($ch);
print_r($response);
curl_close($ch);

?>