... and attach the file.
First Create a CRM connection
I'm going to create a Zoho OAuth connection with open scopes just to get a working example; I can then reduce the scopes permissions afterwards ...
What?
A really quick article for anyone who got stumped by the same issue: How to send multiple invoices to Xero in one API call?
Why?
Our use-case is in Zoho Deluge which couldn't generate more ...
... API v1 is deprecated (so no authtokens) and API OAuth2.0 is in full swing... we're still going to cheat.
How?
1,2,3 steps really. First we're going to set up a Creator form to receive the JSON. ...
... id oauth token","status":"error"} is probably because you are on the .COM datacenter and you should be using https://www.zohoapis.com/crm/v2.1/Quotes but if you were on the EU datacenter, you would use https://www.zohoapis.eu/crm/v2.1/Quotes.
...
... time and then push the creator record to Zoho Projects.
How?
For the following example, you will need to have setup a Zoho Oauth Connection with the appropriate authorized scopes and have access ...
... to a Third-Party API over which I had no control.
What I need to send to the 3rd-party API:
{
"auth": {
"secret": "can_you_keep_a_secret",
"key": "aaabbbbccccddddeeeeffff11112222"
},
...
... // using a Zoho Oauth connection with scope (ZohoCRM.modules.ALL)
r_DownloadFile = invokeurl
[
url :v_CrmEndpointUrl
type :GET
connection:"my_connector"
...
... written. One is that there are 2 sets of documentation and the other is that the majority of the documentation doesn't refer to OAuth 2.0/json and instead uses the deprecated authtoken v1 and XML.
How? ...
... ping both creator.cs.zohohost.com and the subdomain example.joellipman.com. These should both respond with the same IP address.
3. Get Zoho to setup authorize
As a Zoho Partner, you now need to ...
... zet at https://127.0.0.1:5000 along with the instructions “please enable the host (https://127.0.0.1:5000) in a new tab and authorize the connection by clicking Advanced -> Proceed to 127.0.0.1 (unsafe)”. ...
...
Click on Get Started / Add New Connection
Click on the "Zoho OAuth" icon
Enter a Connection name (for this example I will call it "CRM API v2")
Select the appropriate scope(s):
ZohoCRM.coql.READ ...
... access/refresh tokens using OAuth2.0. Usually used with an invokeUrl:
response = invokeUrl
[
url: "https://books.zoho.com/api/v3/estimates?organization_id=12346789"
type: GET
connection: "joelconnector" ...
... Language: English
; Platform: Microsoft Windows 7 Professional
; AutoHotkey: v1.33.02
; Author: -
; Description: This program will remove the word EDIT and words containing an underscore ...
... }
}
// r_AttachFile should yield SUCCESS and if you check your CRM record it will have these under "attachments"
Setup a Zoho Oauth Connection
So that we can use invokeUrl and attempt the ...
... restrict the introtext to the public and fulltext (read more) to the registered users:
Login to the Joomla Administrator site
Go to Articles and click on Options
Set Show Unauthorised Links to Yes ...
... it this way apparently. So setup a Zoho Oauth connector (see the end of this article if you don't know how), I'm going to call mine myZohoConnector, with the scope:
ZohoCRM.settings.fields.READ
Then ...
...
In Reverse
To have the reverse effect of converting a URL into a map, I'm using the following:
v_ReturnedUrl = "https://api.joellipman.com/myapi?isAuthSuccessful=true&code=my_own_code&expires_in=299";
l_ReturnedUrlParts ...
... page for each minor issue.
How?
So I'm going to try and list solutions to minor errors we run into.
Problem: Zoho OAuth Connection: ERROR_invalid_operation_type
Sounds rather straightforward, ...
... be run as. The time difference was just one hour but this caused problems if comparing two datetime values. In this particular case, we needed to check on the expiry of an access token used in OAuth2.0 ...
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.