Google Drive API integration - request body - invokeurl
Hi,
I am accessing Google Drive API (documentation at
https://developers.google.com/drive/api/v3/reference/files) through Zoho CRM. This is working fine, using commands like the following, which pull a Google Drive folder reference from the Contact, and returns a list of files inside that folder:
mapParameters.put("q","'" + Contact.get("gdriveextension__Drive_Folder_ID") + "' in parents and (name contains 'foo' or name contains 'bar') and trashed = false");
mapParameters.put("supportsTeamDrives","true");
mapParameters.put("teamDriveId","xxxxxxx");
fileList = invokeurl
[
url :gdriveURL
type :GET
parameters:mapParameters
connection:"googledrive19"
];
However, for some of the API functions, such as
renaming files, information needs to be passed in the request body. So for example, the body needs to look like this:
{
"name":"newname"
}
Thanks.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.