... for the above demo.
Invalid OAuth Scope: Might be an invalid scope, or the TLD (datacenter) is incorrect. The above demo uses the EU datacenter (zoho.eu) rather than the US datacenter (zoho.com).
...
... has the scopes as specified in the function header. Also note, that this Zoho instance is in the EU datacenter (zoho.eu) rather than the US datacenter. The most important tweak in order for the below ...
... examples I use in production systems:
Pre-amble:
I'm applying to a Zoho Instance on the US Datacenter (.COM)
These examples are using CRM REST API v5 but you can use these as far back as CRM REST ...
... DataCenter) from EU to COM as I was using this for a client on the US datacenter. I have a connection called "zbooks" and the v_BooksOrgID is the ID of the instance in ZohoBooks; so for multiple instances ...
... these in her estimate template... But I'm sending them anyway.
Note(s)
The following code accesses APIs on the EU datacenter.
I have a connection called "zbooks" which has the necessary scope(s) ...
... invokeurl (note the Zoho endpoint here will depend on your datacenter; .com / .eu)
r_Coql = invokeurl
[
url :"https://www.zohoapis.eu/crm/v2/coql"
type :POST
parameters:m_Params.toString()
...
... at the moment, and the endpoint will depend on your datacenter (eg. COM or EU), and lastly the connection "joel_books" is my connection to ZohoBooks:
//
// declare ID of item in Zoho Inventory
v_InventoryId ...
... uses the US datacenter but has it's server timezone set to "US/Eastern" or "America/New_York" (-05:00). Our sales person is on the west coast in the timezone "America/Los_Angeles" (-08:00). And our customer ...
... held in v_ListingPublishKey and lastly, my datacenter is .COM:
URL Syntax #1
// works in eBay
v_ImageSrc = "https://creator.zoho.com/file" + zoho.appuri + "Portal_Listing_Report/" + input.ID + "/Main_Photo/image-download/" ...
... list to stop or prevent these from triggering.
m_Data.put("trigger",[]);
//
// send via REST API v2.1 on EU datacenter
r_CreateCrmQuote = invokeurl
[
url :"https://www.zohoapis.eu/crm/v2.1/Quotes"
type ...
... (in US format irrespective of your datacenter: MM-dd-yyyy)
- bill_status (either "Billable" or "Non Billable")
- hours (eg. "01:00")
- notes (the actual work notes: eg. "Twiddled ...
... the CNAME which will either be creator.cs.zohohost.eu or creator.cs.zohohost.com depending on your datacenter:
2. Setup your Domain/Subdomain
The process here is dependent on your service provider ...
... Required!
ZohoCRM.modules.. or ZohoCRM.modules.all
Click Create and Connect
You will be prompted to allow permissions, so click on "Accept/Allow"
2. Determine the client datacenter
Look at ...
...
];
How?
So in the following example, we are going to setup a connection in Zoho Books on an EU datacenter:
First determine what datacenter your client is using
Register the App
Setup the ...
... to work but appears to be deprecated.
Invoice_Ref_ID is excluded from being copied as it was an autonumber in our example.
zohoapis.eu is used in the above example for a client on the EU datacenters. ...
What?
This is an article documenting how to access ZohoCRM with API v2 using PHP and cURL. The first few functions are to manage OAuth v2 and generate the refresh and access tokens. The second snippet ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.