{"id":14691,"date":"2012-11-23T07:00:25","date_gmt":"2012-11-23T07:00:25","guid":{"rendered":"http:\/\/www.adviceinteractivegroup.com\/?p=4047"},"modified":"2012-11-23T07:00:25","modified_gmt":"2012-11-23T07:00:25","slug":"using-wufoo-webhooks-to-add-leads-to-zoho-crm","status":"publish","type":"post","link":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/","title":{"rendered":"Using Wufoo WebHooks to add leads to Zoho CRM"},"content":{"rendered":"<p><strong>This is an advanced tutorial and assumes you are comfortable with PHP, Wufoo, and Zoho<\/strong><\/p>\n<p>If you are like me you love <a href=\"https:\/\/www.wufoo.com\/\" target=\"_blank\" rel=\"noopener\">Wufoo<\/a> for creating forms. Wufoo <a href=\"https:\/\/www.wufoo.com\/partners\/\" target=\"_blank\" rel=\"noopener\">integrates with a lot of services<\/a> out of the box but sometimes you need to integrate with an application that Wufoo doesn&#8217;t have built-in integration for. I recently had to put up a contact form onto a site that needed to integrate with Zoho CRM which isn&#8217;t a Wufoo partner. I used a Wufoo webhook to call a php script that creates a lead in Zoho and am going to show you how.<\/p>\n<h3>Create the Wufoo Form<\/h3>\n<p>For this tutorial we will be making a simple contact form. Create a new form in Wufoo. Set the form name, redirect url, etc. Add fields for Name, Email, Phone, and Message. Name, Email, and Message are required for our form. Save the form and click on &#8220;Setup email notifications for this form&#8221;.<\/p>\n<h3>Setup the webhook in Wufoo<\/h3>\n<p>The third box has a dropdown to add notifications to other applications. Select webhook and click &#8220;Add Integration&#8221;. The box will now have fields for webhook url and Handshake Key.<\/p>\n<p><strong>WebHook URL<\/strong> is the url to the script we will create.<\/p>\n<blockquote><p><strong>Example:<\/strong> http:\/\/www.mysite.com\/wufoo-zoho-webhook.php<\/p><\/blockquote>\n<p><strong>WebHook Handshake Key<\/strong> is what will authenticate Wufoo&#8217;s webhook to our script. This should be a secure key with a mix of UPPER\/lowe case letter, number, and symbols. I used a 25 digit randomly generated key.<\/p>\n<blockquote><p><strong>Example:<\/strong> k]NSID,uB]b6#lO)g?kbptc5l<\/p><\/blockquote>\n<h2>Writing the PHP script<\/h2>\n<p>Create a new file called &#8220;wufoo-zoho-webhook.php&#8221; (from our WebHook URL above).<\/p>\n<h3>Verifying the hadshake key<\/h3>\n<p>When the webhook sends data to our script it will be $_POST data. So here we are getting the posts Handshake Key and making sure it is the correct value. All of the code from this point on will go inside the IF statement.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\nif( $_POST[&#8216;HandshakeKey&#8217;] == &#8216;k]NSID,uB]b6#lO)g?kbptc5l&#8217; ):<br \/>\n\/* ALL OF OUR SCRIPT CODE WILL GO HERE *\/<br \/>\nendif; \/\/end if handshake key<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<h3>Define Zoho API key<\/h3>\n<p>Here is a quick quote from the <a href=\"https:\/\/help.zoho.com\/portal\/kb\/zoho-desk\/for-developers\/developer-guide\" target=\"_blank\" rel=\"noopener\">Zoho API documentation<\/a> about to how to get an API key if you do not have one.<\/p>\n<blockquote><p><strong>Generating the API key (apikey)<\/strong><br \/>\nLog in to Zoho Support (https:\/\/support.zoho.com) using administrator credentials<br \/>\nClick Setup&gt;Developer Space<br \/>\nClick Generate API Key<br \/>\nCopy the API key that is generated. You will require this key to integrate Zoho Support with other third-party services.<\/p><\/blockquote>\n<p>We are just going to store the API key in a variable to use later.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n$zoho_api_key = &#8220;Enter your Zoho API key here&#8221;;<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<h3>Capturing the form fields<\/h3>\n<p>You will need to reference the fields by API name. To find out the API names of our form fields visit your form list, find our form and click code. In the upper-right of the code screen you will see a button labeled &#8220;API Information&#8221;. <a href=\"http:\/\/www.adviceinteractivegroup.com\/images\/wufoo-form-api-info.png\">Exactly what we need<\/a>.<\/p>\n<p>When posting data each field will have a key of &#8220;Field&#8221; plus the API ID. First Name in our example is &#8220;Field1&#8221;. Since we are not interacting with the Wufoo API you can ignore the Wufoo API key.<\/p>\n<p>Here we are creating an array called &#8220;$data&#8221; and capturing our form $_POST data.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n$data = array ();<\/p>\n<p>\/\/first name<br \/>\nif(!empty($_POST[&#8216;Field1&#8217;]))<br \/>\n$data[&#8216;fname&#8217;] = $_POST[&#8216;Field1&#8217;];<\/p>\n<p>\/\/last name<br \/>\nif(!empty($_POST[&#8216;Field2&#8217;]))<br \/>\n$data[&#8216;lname&#8217;] = $_POST[&#8216;Field2&#8217;];<\/p>\n<p>\/\/email<br \/>\nif(!empty($_POST[&#8216;Field3&#8242;]))<br \/>\n$data[&#8217;email&#8217;] = $_POST[&#8216;Field3&#8217;];<\/p>\n<p>\/\/phone<br \/>\nif(!empty($_POST[&#8216;Field4&#8217;]))<br \/>\n$data[&#8216;phone&#8217;] = $_POST[&#8216;Field4&#8217;];<\/p>\n<p>\/\/message &#8211; no direct match in Zoho, sending message to the lead description field instead<br \/>\nif(!empty($_POST[&#8216;Field5&#8217;]))<br \/>\n$data[&#8216;description&#8217;] = $_POST[&#8216;Field5&#8217;];<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<h3>Additional fields for Zoho<\/h3>\n<p>Next we need to define lead source to pass to Zoho.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n\/\/source<br \/>\n$data[&#8216;source&#8217;] = &#8216;mywebsite.com Contact Form&#8217;;<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<p>Lead owner is optional. If you do not define lead owner it will default to the person who created the Zoho API key.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n\/\/owner &#8211; email address of Zoho user who will own the lead<br \/>\n$data[&#8216;owner&#8217;] = &#8216;me@mywebsite.com&#8217;;<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<h3>Converting the data to an XML format Zoho can read<\/h3>\n<p>According to the Zoho <a href=\"https:\/\/help.zoho.com\/portal\/kb\/articles\/overview-of-rest-apis\" target=\"_blank\" rel=\"noopener\">API documentation<\/a> our data needs to be in XML format setup similiar to the example below.<\/p>\n<blockquote><p>Add Records Demo<br \/>\nJohn<br \/>\nCustomer Care<br \/>\njohn@demo.com<br \/>\n002200330044<\/p><\/blockquote>\n<p>To acheive this we are going to loop through our data array and add XML markup.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n$zoho_xml_data = &#8216;&lt;Leads&gt;&lt;row no=&#8221;1&#8243;&gt;&#8217;;<\/p>\n<p>foreach($data as $key =&gt; $value):<br \/>\nswitch($key):<br \/>\ncase &#8216;description&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Description&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8216;source&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Lead Source&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8216;fname&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;First Name&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8216;lname&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Last Name&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8217;email&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Email&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8216;phone&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Phone&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\ncase &#8216;owner&#8217;: $zoho_xml_data .= &#8216;&lt;fl val=&#8221;Lead Owner&#8221;&gt;&#8217; . $value . &#8216;&lt;\/fl&gt;&#8217;; break;<br \/>\nendswitch;<br \/>\nendforeach;<\/p>\n<p>$zoho_xml_data .= &#8216;&lt;\/row&gt;&lt;\/Leads&gt;&#8217;;<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<p>Notice we changedin the example to. The switch statement inside the foreach loop looks at each key of the data array, and if a match is found, adds it to the $zoho_xml_data variable.<\/p>\n<p>You can add more cases to the switch statement for different Zoho fields as needed &#8211; even custom fields.<\/p>\n<h3>Define Zoho URL to send data to<\/h3>\n<p>We are going to change the sample URL from the API documentation to fit our needs with the CRM.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n$zoho_url = &#8220;https:\/\/crm.zoho.com\/crm\/private\/xml\/Leads\/insertRecords?newFormat=1&amp;amp;authtoken=&#8221; . $zoho_api_key . &#8220;&amp;amp;scope=crmapi&amp;amp;xmlData=&#8221; . urlencode($zoho_xml_data);<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<p>&#8220;crm\/private\/xml\/Leads\/insertRecords&#8221; will tell Zoho we are using a private section of the CRM, passing data in xml format to the leads module, and inserting a new record.<\/p>\n<p>&#8220;authtoken&#8221; is the API key we defined earlier.<\/p>\n<p>xmlData is our XML data (URL encoded)<\/p>\n<h3>Creating a cURL function to send the data<\/h3>\n<p>There are a lot of existing tutorials on cURL so I am not going to go over it here.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\nfunction cURLzoho($url) {<br \/>\n$ch = curl_init();<br \/>\n$timeout = 5;<\/p>\n<p>curl_setopt($ch,CURLOPT_URL,$url);<br \/>\ncurl_setopt($ch,CURLOPT_RETURNTRANSFER,1);<br \/>\ncurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);<br \/>\n$data = curl_exec($ch);<br \/>\ncurl_close($ch);<br \/>\nreturn $data;<br \/>\n}\/\/end cURLzoho function<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<p>Then we run the function, passing it the Zoho url with the URL encoded XML data.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n$response = cURLzoho($zoho_url);<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<p>If you run into trouble you can post $response to a log file to see what message the Zoho API gives you.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\nfile_put_contents(&#8216;zohoResponse.log&#8217;, $response . &#8220;nn&#8221;, FILE_APPEND | LOCK_EX);<br \/>\n?&gt;<br \/>\n[\/code]<\/p>\n<h3>Test it out<\/h3>\n<p>Upload the script to your domain&#8217;s root. If you upload it elsewhere be sure to update the Wufoo WebHook URL to the appropriate place.<\/p>\n<p>Visit your <a href=\"http:\/\/www.adviceinteractivegroup.com\/images\/wufoo-form-test.png\">form on Wufoo<\/a> or embed it on your site and test an entry.<\/p>\n<p>If everything went well your log file should contain a message similiar to this one.<\/p>\n<p>[code language=&#8221;xml&#8221;]&lt;xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; &gt;<br \/>\n&lt;response uri=&#8221;\/crm\/private\/xml\/Leads\/insertRecords&#8221;&gt;&lt;result&gt;&lt;message&gt;Record(s) added successfully&lt;\/message&gt;&lt;recorddetail&gt;&lt;FL val=&#8221;Id&#8221;&gt;491455000002394031&lt;\/FL&gt;&lt;FL val=&#8221;Created Time&#8221;&gt;2012-11-20 15:24:57&lt;\/FL&gt;&lt;FL val=&#8221;Modified Time&#8221;&gt;2012-11-20 15:24:57&lt;\/FL&gt;&lt;FL val=&#8221;Created By&#8221;&gt;&lt;![CDATA[ZohoUserName]]&gt;&lt;\/FL&gt;&lt;FL val=&#8221;Modified By&#8221;&gt;&lt;![CDATA[ZohoUserName]]&gt;&lt;\/FL&gt;&lt;\/recorddetail&gt;&lt;\/result&gt;&lt;\/response&gt;[\/code]<\/p>\n<p>Note the ID number passed as a response. You can store the Lead ID and use it to update existing leads with the Zoho API.<\/p>\n<p>Go take a look at Zoho and you can see the details of the <a href=\"http:\/\/www.adviceinteractivegroup.com\/images\/zoho-lead-view.png\">newly created Lead<\/a>.<\/p>\n<h3>Summary<\/h3>\n<p>This is a simple example but you should have the basics down and be able to expand this to fit your needs. For example you can have a sidebar &#8220;quick&#8221; contact form that captures Name, Phone and Email then redirect users to another form asking for more details and update the Lead if they choose to fill out the second form.<\/p>\n<p>Here is a link to the <a href=\"https:\/\/gist.github.com\/ataylorme\/4124988\" target=\"_blank\" rel=\"noopener\">complete sample script<\/a> on github.<\/p>\n<p>If you use the script please post a comment and let me know how it worked for you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is an advanced tutorial and assumes you are comfortable with PHP, Wufoo, and Zoho If you are like me [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-14691","post","type-post","status-publish","format-standard","hentry","category-web-development-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local<\/title>\n<meta name=\"description\" content=\"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local\" \/>\n<meta property=\"og:description\" content=\"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/\" \/>\n<meta property=\"og:site_name\" content=\"Advice Local\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/advicelocallistings\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-23T07:00:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2018\/02\/Advice-Local-Partners-FB.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Bernadette Coleman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local\" \/>\n<meta name=\"twitter:creator\" content=\"@advice_local\" \/>\n<meta name=\"twitter:site\" content=\"@advice_local\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bernadette Coleman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/\"},\"author\":{\"name\":\"Bernadette Coleman\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/person\\\/2db3c5de76eb330f52a29fb4fafa1dbd\"},\"headline\":\"Using Wufoo WebHooks to add leads to Zoho CRM\",\"datePublished\":\"2012-11-23T07:00:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/\"},\"wordCount\":1508,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/\",\"name\":\"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#website\"},\"datePublished\":\"2012-11-23T07:00:25+00:00\",\"description\":\"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Wufoo WebHooks to add leads to Zoho CRM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\",\"name\":\"Advice Local\",\"description\":\"Local Digital Marketing Software Solutions and Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\",\"name\":\"Advice Local\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/logo.png\",\"width\":265,\"height\":55,\"caption\":\"Advice Local\"},\"image\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/advicelocallistings\\\/\",\"https:\\\/\\\/x.com\\\/advice_local\",\"https:\\\/\\\/www.instagram.com\\\/advice_local\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/person\\\/2db3c5de76eb330f52a29fb4fafa1dbd\",\"name\":\"Bernadette Coleman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"caption\":\"Bernadette Coleman\"},\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/author\\\/bernadette-coleman\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local","description":"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/","og_locale":"en_US","og_type":"article","og_title":"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local","og_description":"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.","og_url":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/","og_site_name":"Advice Local","article_publisher":"https:\/\/www.facebook.com\/advicelocallistings\/","article_published_time":"2012-11-23T07:00:25+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2018\/02\/Advice-Local-Partners-FB.jpg","type":"image\/jpeg"}],"author":"Bernadette Coleman","twitter_card":"summary_large_image","twitter_title":"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local","twitter_creator":"@advice_local","twitter_site":"@advice_local","twitter_misc":{"Written by":"Bernadette Coleman","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/#article","isPartOf":{"@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/"},"author":{"name":"Bernadette Coleman","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/person\/2db3c5de76eb330f52a29fb4fafa1dbd"},"headline":"Using Wufoo WebHooks to add leads to Zoho CRM","datePublished":"2012-11-23T07:00:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/"},"wordCount":1508,"commentCount":7,"publisher":{"@id":"https:\/\/www.advicelocal.com\/blog\/#organization"},"articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/","url":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/","name":"Using Wufoo WebHooks To Add Leads To Zoho CRM | Advice Local","isPartOf":{"@id":"https:\/\/www.advicelocal.com\/blog\/#website"},"datePublished":"2012-11-23T07:00:25+00:00","description":"Tutorial about getting your hands dirty and writing a php script using Wufoo WebHooks to capture leads with the Zoho CRM API.","breadcrumb":{"@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.advicelocal.com\/blog\/using-wufoo-webhooks-to-add-leads-to-zoho-crm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.advicelocal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Wufoo WebHooks to add leads to Zoho CRM"}]},{"@type":"WebSite","@id":"https:\/\/www.advicelocal.com\/blog\/#website","url":"https:\/\/www.advicelocal.com\/blog\/","name":"Advice Local","description":"Local Digital Marketing Software Solutions and Services","publisher":{"@id":"https:\/\/www.advicelocal.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.advicelocal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.advicelocal.com\/blog\/#organization","name":"Advice Local","url":"https:\/\/www.advicelocal.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2026\/04\/logo.png","contentUrl":"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2026\/04\/logo.png","width":265,"height":55,"caption":"Advice Local"},"image":{"@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/advicelocallistings\/","https:\/\/x.com\/advice_local","https:\/\/www.instagram.com\/advice_local"]},{"@type":"Person","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/person\/2db3c5de76eb330f52a29fb4fafa1dbd","name":"Bernadette Coleman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","caption":"Bernadette Coleman"},"url":"https:\/\/www.advicelocal.com\/blog\/author\/bernadette-coleman\/"}]}},"_links":{"self":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts\/14691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/comments?post=14691"}],"version-history":[{"count":0,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts\/14691\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/media?parent=14691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/categories?post=14691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/tags?post=14691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}