New Developer - Invalid Ticket ID 4834
Hi All,
Im relatively new to Zoho and I am working on using the insertRecord API.
My issue is the below code returns an
Invalid Ticket ID 4383
My Auth token is valid and appears in the Active Auth Tokens
-
- $xml = '<Leads>';
- $xml .= '<row no="1">';
- $xml .= '<FL val="Company">' . $company . '</FL>';
- $xml .= '<FL val="First Name">'.$first.'</FL>';
- $xml .= '<FL val="Last Name">'.$surname.'</FL>';
- if($title) {
- $xml .= '<FL val="Designation">' . $title . '</FL>';
- }
- $xml .= '<FL val="Email">'.$email.'</FL>';
- if($tel) {
- $xml .= '<FL val="Phone">' . str_replace(' ', '', $tel) . '</FL>';
- }
-
- $xml .= '<FL val="Lead Source">Website</FL>';
-
- if($type) {
- $xml .= '<FL val="Industry">' . $type . '</FL>';
- }
-
- $xml .= '</row>';
- $xml .= '</Leads>';
-
-
- $url ="https://crm.zoho.com/crm/private/xml/Leads/insertRecords";
- $query="authtoken=MYVALIDTOKENHERE&scope=crmapi&newFormat=1&xmlData=".$xml;
- $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, $query);// Set the request as a POST FIELD for curl.
-
- //Execute cUrl session
- $response = curl_exec($ch);
- curl_close($ch);
-
- print_r($response);
Any help will be greatly appreciated.
Steve