php - Error 4600 Zoho CRM Insert Record using cURL -
getting error - 4600 unable process request. please verify whether have entered proper method name, parameter , parameter values.
$auth="authkey"; $email = $_post['lowner']; $firstname = $_post['fname']; $lastname = $_post['lname']; $email = $_post['email']; $phone = $_post['phone']; $url = 'https://crm.zoho.com/crm/private/xml/leads/insertrecords?'; $post = 'newformat=1&authtoken='.$auth.'&scope=crmapi&xmldata=<leads> <row no="1"> <fl val="lead owner">'.$email.'</fl> <fl val="first name">'.$firstname.'</fl> <fl val="last name">'.$lastname.'</fl> <fl val="email">'.$email.'</fl> <fl val="phone">'.$phone.'</fl> <fl val="description">insert zoho lead</fl> </row> </leads>'; //================= start curl =================== $ch = curl_init(); curl_setopt($ch, curlopt_ssl_verifypeer, false); 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,$post); $result = curl_exec($ch); curl_close($ch); //================= end curl =================== echo '<pre>'; print_r($result); exit;
Comments
Post a Comment