ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage functions / Communication / Drive functions
  • Overview
  • Google Drive configuration
  • Dropbox configuration
  • Configuration OneDrive
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
Prerequisites for using Google Drive, OneDrive and Dropbox
AjaxNot available
Overview
There are many online storage services available. WINDEV, WEBDEV and WINDEV Mobile allow you to easily manipulate files on Dropbox, Google Drive and OneDrive.
To manipulate files, you need to configure the drives you want to use:
Google Drive configuration
To use Google Drive, you need to create a Google project and obtain the credentials needed to access this project.
Follow these steps:
  1. Access your Google Cloud platform via: https://console.cloud.google.com.
    Remark: If necessary, create a Google account.
  2. Create a new project.
    • Click in the project list. If you don't have a project, click "Select a project".
    • In the popup that appears, click "NEW PROJECT".
    • Enter the project name and location (the name does not have to be the same as that of your WINDEV, WEBDEV or WINDEV Mobile project).
    • Click "CREATE".
  3. Select your project and go to the project dashboard.
  4. In "APIs & Services" on the left of the page, select "OAuth consent screen". You can also use the search bar if necessary.
  5. Select "Internal" or "External" as required, then click "CREATE". Different steps appear:
    • Step 1: OAuth consent screen:
      Fill in the required fields: these fields are relative to your application and/or company.
    • Step 2: Scopes:
      Click "ADD OR REMOVE SCOPES". Search for ".../auth/drive". If the search returns no results, manually add "https://www.googleapis.com/auth/drive" and click on "Add to table". The new element is automatically selected. Click "UPDATE".
    • Step 3: Test users:
      Specify the test users. Test users can access your application before it is deployed. You can add this type of users at any time.
  6. In "APIs & Services" on the left of the page, select "Enabled APIs & services".
    • Click "+ ENABLE APIS AND SERVICES".
    • In the list of available APIs, select "Google Drive API".
    • On the API details page, click "ENABLE".
  7. In "APIs & Services" on the left of the page, select "Credentials".
  8. Click " + CREATE CREDENTIALS", then select "OAuth client ID". In the page that appears:
    • In "Application type", select "Desktop app".
      For Android applications, also select "Desktop app".
      For iOS applications, select "iOS".
    • Define the client name and click "CREATE".
  9. The page that appears contains information to keep for use in your WINDEV, WEBDEV or WINDEV Mobile project:
    • Client ID.
    • Client secret.
  10. Validate.
Dropbox configuration
To use Dropbox, you need to create a Dropbox project and obtain the credentials needed to access this project.
Follow these steps:
  1. Access your Dropbox platform via: https://www.dropbox.com/developers/apps.
    Remark: If necessary, create a Dropbox account.
  2. Click "Create apps".
  3. Click "Scoped access", then select "Full Dropbox".
  4. Name your application and click "Create app".
  5. In the application dashboard:
    • In "OAuth 2", enter the following in the "Redirect URIs" field: "http://localhost:29000" then click "Add".
    • Go to the "Permissions" tab and add the following permissions:
      • files.metadata.write
      • files.metadata.read
      • files.content.write
      • files.content.read
  6. In the "Settings" tab, copy and keep the following details: "App key" and "App secret".
Configuration OneDrive
To use OneDrive, you need to create a OneDrive project and obtain the credentials needed to access this project.
Follow these steps:
  1. Access your Microsoft Azure platform via: https://portal.azure.com.
    Remark: If necessary, create a Microsoft account.
  2. In the search bar, type and select "App registrations".
  3. Click "Register an application".
  4. On the registration page:
    • Specify the name of the application
    • Select "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)".
  5. Click "Register".
  6. Keep the Application (client) ID. This ID will be used to log in to the drive (ClientID property of the OAuth2Parameters variable).
  7. In the menu, select "Authentication".
  8. In the page that appears:
    • Click "Add a platform".
    • Select "Web". In the redirect URI, type "http://localhost".
    • Confirm your changes by clicking "Configure".
  9. In the menu, select "Certificates & secrets".
    • On the "Client secrets" tab, click "New client secret".
    • Enter the required information and confirm.
  10. Copy the value and the secret ID (Caution: this information can only be copied once).
    This ID will be used to log in to the drive (ClientSecret property of the OAuth2Parameters variable).
Remark: For iOS applications, use the redirection URL provided by Microsoft when adding a new platform.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/05/2024

Send a report | Local help