From 1fad668cf9e06582ddb53409abb267984941d621 Mon Sep 17 00:00:00 2001 From: Venba Date: Wed, 29 May 2024 03:28:17 +0000 Subject: [PATCH] CHANGE_API domain to zohoapis.com --- application/helpers/zohobooks_fetch_api_helper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/helpers/zohobooks_fetch_api_helper.php b/application/helpers/zohobooks_fetch_api_helper.php index b43e125b..7508739f 100644 --- a/application/helpers/zohobooks_fetch_api_helper.php +++ b/application/helpers/zohobooks_fetch_api_helper.php @@ -38,7 +38,8 @@ function getheringInvoiceDetails($date_today , $date_yesterday , $accesstoken) { $ch=curl_init(); $organization_id = '655654572'; - $url_org ="https://books.zoho.com/api/v3/invoices?"; + $url_org_old ="https://books.zoho.com/api/v3/invoices?"; + $url_org ="https://zohoapis.com/api/v3/invoices?"; $fields=array("usestate" => "true","organization_id" => $organization_id,"date_start" => $date_yesterday,"date_end" => $date_today); $data_all = http_build_query($fields); $headers=array('Authorization:Zoho-oauthtoken '.$accesstoken,'Content-Type:application/json'); @@ -60,7 +61,8 @@ function getheringInvoiceDetails($date_today , $date_yesterday , $accesstoken) function getheringInvoiceSubDetails($invoice_id , $organization_id , $headers) { $ch=curl_init(); - $url2 = 'https://books.zoho.com/api/v3/invoices/'.$invoice_id.'?organization_id='.$organization_id; + $url2_old = 'https://books.zoho.com/api/v3/invoices/'.$invoice_id.'?organization_id='.$organization_id; + $url2 = 'https://zohoapis.com/api/v3/invoices/'.$invoice_id.'?organization_id='.$organization_id; curl_setopt($ch, CURLOPT_URL, $url2); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, 0);