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.
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.