{"id":1568,"date":"2022-08-15T09:57:30","date_gmt":"2022-08-15T04:27:30","guid":{"rendered":"https:\/\/myfreeonlinetools.com\/blog\/?p=1568"},"modified":"2022-08-15T09:57:30","modified_gmt":"2022-08-15T04:27:30","slug":"get-all-records-of-zoho-crm-by-using-php-curl","status":"publish","type":"post","link":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/","title":{"rendered":"Get All Records of Zoho CRM by Using PHP Curl"},"content":{"rendered":"<h2>Access Zoho API using PHP Curl<\/h2>\n<p>Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.<\/p>\n<h3>Fetch Zoho CRM Data using API<\/h3>\n<pre>&lt;?php\r\n\r\n$url = \"https:\/\/accounts.zoho.in\/oauth\/v2\/token?refresh_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;grant_type=refresh_token\";\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $url);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n$result = curl_exec($ch);\r\ncurl_close($ch);\r\n$output = json_decode($result, true);\r\n$access_token = $output['access_token'];\r\necho $access_token;\r\necho '&lt;br \/&gt;';\r\n?&gt;<\/pre>\n<h3>For Above code you get the Zoho Access Code<\/h3>\n<p>&nbsp;<\/p>\n<p>By using below PHP code get all leads records thru using PHP Curl and result will print in your browser with JSON format<\/p>\n<pre>&lt;?php\u00a0\r\n$headerTwo =array(\"Authorization: Zoho-oauthtoken $access_token\");\r\n$curl = curl_init();\r\ncurl_setopt ($curl, CURLOPT_URL, \"https:\/\/www.zohoapis.in\/crm\/v2\/Leads\");\r\ncurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curl, CURLOPT_HTTPHEADER, $headerTwo);\r\n$return = curl_exec ($curl);\r\ncurl_close ($curl);\r\n\r\n$outputZoho = json_decode($return, true);\r\n\r\necho '&lt;pre&gt;';\r\nprint_r($outputZoho);\r\necho '&lt;\/pre&gt;';\r\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Access Zoho API using PHP Curl Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl. Fetch Zoho [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33,29,38],"tags":[],"class_list":["post-1568","post","type-post","status-publish","format-standard","hentry","category-curl","category-php","category-zoho-crm"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools<\/title>\n<meta name=\"description\" content=\"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools\" \/>\n<meta property=\"og:description\" content=\"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\" \/>\n<meta property=\"og:site_name\" content=\"MyFreeOnlineTools\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/LearnSchoolOnline\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-15T04:27:30+00:00\" \/>\n<meta name=\"author\" content=\"myfreeonlinetools\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"myfreeonlinetools\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\"},\"author\":{\"name\":\"myfreeonlinetools\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/b1eb72e57c554e3b33cfeec477efcc3c\"},\"headline\":\"Get All Records of Zoho CRM by Using PHP Curl\",\"datePublished\":\"2022-08-15T04:27:30+00:00\",\"dateModified\":\"2022-08-15T04:27:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\"},\"wordCount\":77,\"publisher\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#organization\"},\"articleSection\":[\"cURL\",\"PHP\",\"Zoho CRM\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\",\"url\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\",\"name\":\"Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools\",\"isPartOf\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#website\"},\"datePublished\":\"2022-08-15T04:27:30+00:00\",\"dateModified\":\"2022-08-15T04:27:30+00:00\",\"description\":\"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.\",\"breadcrumb\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/myfreeonlinetools.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get All Records of Zoho CRM by Using PHP Curl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#website\",\"url\":\"https:\/\/myfreeonlinetools.com\/blog\/\",\"name\":\"MyFreeOnlineTools\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/myfreeonlinetools.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#organization\",\"name\":\"MyFreeOnlineTools\",\"url\":\"https:\/\/myfreeonlinetools.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/myfreeonlinetools.com\/blog\/wp-content\/uploads\/2019\/11\/myfreeonlinetools-blue.png\",\"contentUrl\":\"https:\/\/myfreeonlinetools.com\/blog\/wp-content\/uploads\/2019\/11\/myfreeonlinetools-blue.png\",\"width\":387,\"height\":79,\"caption\":\"MyFreeOnlineTools\"},\"image\":{\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/b1eb72e57c554e3b33cfeec477efcc3c\",\"name\":\"myfreeonlinetools\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b870b17c6c7e3b75d7fe0b8bebfc9cf5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b870b17c6c7e3b75d7fe0b8bebfc9cf5?s=96&d=mm&r=g\",\"caption\":\"myfreeonlinetools\"},\"description\":\"Live in Delhi, Working in Gurgaon as Web Designer and Graphic Designer. Developed and Design myfreeonlinetools for online free tools. Also having youtube channel Name with LearnSchoolOnline. Traveling, watching movies, coding are the hobbies.\",\"sameAs\":[\"https:\/\/myfreeonlinetools.com\/\",\"https:\/\/www.facebook.com\/LearnSchoolOnline\/\",\"https:\/\/www.youtube.com\/learnschoolonline\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools","description":"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.","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:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/","og_locale":"en_US","og_type":"article","og_title":"Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools","og_description":"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.","og_url":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/","og_site_name":"MyFreeOnlineTools","article_author":"https:\/\/www.facebook.com\/LearnSchoolOnline\/","article_published_time":"2022-08-15T04:27:30+00:00","author":"myfreeonlinetools","twitter_card":"summary_large_image","twitter_misc":{"Written by":"myfreeonlinetools","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#article","isPartOf":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/"},"author":{"name":"myfreeonlinetools","@id":"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/b1eb72e57c554e3b33cfeec477efcc3c"},"headline":"Get All Records of Zoho CRM by Using PHP Curl","datePublished":"2022-08-15T04:27:30+00:00","dateModified":"2022-08-15T04:27:30+00:00","mainEntityOfPage":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/"},"wordCount":77,"publisher":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/#organization"},"articleSection":["cURL","PHP","Zoho CRM"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/","url":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/","name":"Get All Records of Zoho CRM by Using PHP Curl - MyFreeOnlineTools","isPartOf":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/#website"},"datePublished":"2022-08-15T04:27:30+00:00","dateModified":"2022-08-15T04:27:30+00:00","description":"Access Zoho API and Fetch all Zoho CRM records after create Zoho Postman Access token and refresh token with create PHP Curl.","breadcrumb":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/myfreeonlinetools.com\/blog\/get-all-records-of-zoho-crm-by-using-php-curl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/myfreeonlinetools.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Get All Records of Zoho CRM by Using PHP Curl"}]},{"@type":"WebSite","@id":"https:\/\/myfreeonlinetools.com\/blog\/#website","url":"https:\/\/myfreeonlinetools.com\/blog\/","name":"MyFreeOnlineTools","description":"","publisher":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/myfreeonlinetools.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/myfreeonlinetools.com\/blog\/#organization","name":"MyFreeOnlineTools","url":"https:\/\/myfreeonlinetools.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/myfreeonlinetools.com\/blog\/wp-content\/uploads\/2019\/11\/myfreeonlinetools-blue.png","contentUrl":"https:\/\/myfreeonlinetools.com\/blog\/wp-content\/uploads\/2019\/11\/myfreeonlinetools-blue.png","width":387,"height":79,"caption":"MyFreeOnlineTools"},"image":{"@id":"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/b1eb72e57c554e3b33cfeec477efcc3c","name":"myfreeonlinetools","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/myfreeonlinetools.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b870b17c6c7e3b75d7fe0b8bebfc9cf5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b870b17c6c7e3b75d7fe0b8bebfc9cf5?s=96&d=mm&r=g","caption":"myfreeonlinetools"},"description":"Live in Delhi, Working in Gurgaon as Web Designer and Graphic Designer. Developed and Design myfreeonlinetools for online free tools. Also having youtube channel Name with LearnSchoolOnline. Traveling, watching movies, coding are the hobbies.","sameAs":["https:\/\/myfreeonlinetools.com\/","https:\/\/www.facebook.com\/LearnSchoolOnline\/","https:\/\/www.youtube.com\/learnschoolonline"]}]}},"_links":{"self":[{"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/comments?post=1568"}],"version-history":[{"count":0,"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/posts\/1568\/revisions"}],"wp:attachment":[{"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/media?parent=1568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/categories?post=1568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myfreeonlinetools.com\/blog\/wp-json\/wp\/v2\/tags?post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}