ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Drive functions
  • Specific cases when using Google Drive with an existing token
  • Functions that use gglDrive variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The gglDrive type is used to handle Google Drive. To use a gglDrive variable, you need to connect to Google Drive using GglDriveConnect.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"

Drive is gglDrive
Drive = GglDriveConnect(oOAuth2Param)
oMyOAuthParameters is OAuth2Parameters
// Authentication parameters
oOAuth2Token is AuthToken
oOAuth2Token = AuthIdentify(oMyOAuthParameters)
// Connection
Drive is gglDrive
Drive = GglDriveConnect(oOAuth2Token)
Remarks

Specific cases when using Google Drive with an existing token

The properties of OAuth2Parameters variables used by the GglDriveConnect function are as follows:
Property of OAuth2Parameters variablesValue used by the GglDriveConnect function
AuthURL"https://accounts.google.com/o/oauth2/v2/auth"
TokenURL"https://oauth2.googleapis.com/token"
Scope"https://www.googleapis.com/auth/drive"
RedirectionURL (Editable)"http://localhost:3400/"

Functions that use gglDrive variables

dpDriveConnectCreates a connection to Dropbox.
DriveCopyDirectoryCopies a directory on a remote drive to another directory.
DriveCopyFileCopies a single file on a remote drive to another directory on same drive.
DriveCreateDirectoryCreates a directory on the remote drive.
DriveCreateFileCreates a file on the remote drive.
DriveDeleteDirectoryDeletes a directory and its files from a remote drive.
DriveDeleteFileDeletes a file from a remote drive.
DriveDownloadDirectoryDownloads a directory and its files from a remote drive to the user's computer.
DriveDownloadFileDownloads a file from a remote drive to the user's computer.
DriveDownloadGglFileDownloads a Google Docs Editors file from Google Drive in a given compatible format.
DriveListDirectoryLists drive directories.
DriveListFileLists the files in a cloud-based drive directory.
DriveListFileGglLists Google Docs Editors files (Docs, Sheets, etc.) present on Google Drive.
DriveMoveDirectoryMoves a directory and its contents to another directory within a remote drive.
DriveMoveFileMoves a file on a remote drive from one directory to another.
DriveRenameRenames a file or directory on a remote drive.
DriveUploadDirectoryUploads a directory and its contents to a remote drive.
DriveUploadFileUploads a local file to a remote drive.
GglDriveConnectCreates a connection to Google Drive.
oDriveConnectCreates a connection to OneDrive.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/10/2024

Send a report | Local help