ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
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

New in version 2024
dpDriveConnect
Creates a connection to Dropbox.
New in version 2024
DriveCopyDirectory
Copies a directory on a remote drive to another directory.
New in version 2024
DriveCopyFile
Copies a single file on a remote drive to another directory on same drive.
New in version 2024
DriveCreateDirectory
Creates a directory on the remote drive.
New in version 2024
DriveCreateFile
Creates a file on the remote drive.
New in version 2024
DriveDeleteDirectory
Deletes a directory and its files from a remote drive.
New in version 2024
DriveDeleteFile
Deletes a file from a remote drive.
New in version 2024
DriveDownloadDirectory
Downloads a directory and its files from a remote drive to the user's computer.
New in version 2024
DriveDownloadFile
Downloads a file from a remote drive to the user's computer.
New in version 2024
DriveDownloadGglFile
Downloads a Google Docs Editors file from Google Drive in a given compatible format.
New in version 2024
DriveListDirectory
Lists drive directories.
New in version 2024
DriveListFile
Lists the files in a cloud-based drive directory.
New in version 2024
DriveListFileGgl
Lists Google Docs Editors files (Docs, Sheets, etc.) present on Google Drive.
New in version 2024
DriveMoveDirectory
Moves a directory and its contents to another directory within a remote drive.
New in version 2024
DriveMoveFile
Moves a file on a remote drive from one directory to another.
New in version 2024
DriveRename
Renames a file or directory on a remote drive.
New in version 2024
DriveUploadDirectory
Uploads a directory and its contents to a remote drive.
New in version 2024
DriveUploadFile
Uploads a local file to a remote drive.
New in version 2024
GglDriveConnect
Creates a connection to Google Drive.
New in version 2024
oDriveConnect
Creates 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