|
|
|
|
DriveDownloadGglFile (Function) In french: DriveRécupèreFichierGgl
Not available
Downloads a Google Docs Editors file (Docs, Sheets, etc.) from Google Drive.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
gglMyDrive is gglDrive
gglMyDrive = GglDriveConnect(oOAuth2Param)
arrGglFile is array of GglFile
arrGglFile = DriveListFileGgl(gglMyDrive, "/", frRecursive)
FOR EACH Queue OF arrGglFile
SWITCH Queue.MimeType
CASE mimeTypeGglDocs: Queue.ExportMimeType = mimeTypeDOCX
CASE mimeTypeGglSheets: Queue.ExportMimeType = mimeTypeXLSX
OTHER CASE: Queue.ExportMimeType = mimeTypePDF
END
let ResDownload = DriveDownloadGglFile(gglMyDrive, arrGglFile[1], "c:\MyDocuments")
IF ErrorOccurred THEN
Trace ("An error has occurred")
RETURN
END
END
Syntax
DriveDownloadGglFile(<Google Drive> , <File to download> , <Destination directory>)
<Google Drive>: gglDrive variable Name of the gglDrive variable that corresponds to the Google Drive service to be used. The connection to the drive must have been previously established. <File to download>: GglFile variable Name of the GglFile variable that corresponds to the file to be download. <Destination directory>: Character string Absolute path of the file to be saved on the local computer. If this parameter does not correspond to a valid file path, or if a file with the same name already exists, the file will not be downloaded. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|