CHANGE_API domain to zohoapis.com

This commit is contained in:
Venba 2024-05-29 03:28:17 +00:00
parent 4903cb9fb6
commit 1fad668cf9

View File

@ -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);