← All Tutorials
Enable Google Drive API and get backup credentials
This guide explains the procedure for enabling the Google Drive API in a Google account to obtain the necessary authentication credentials for performing cloud backups with Iperius.
To configure a backup on Google Drive, you need to enable this feature in your Google account, create a Google Drive account within Iperius, and enter the credentials generated via the Google Cloud Console (client ID and client secret).
The first step is to log into your Google account and enable the Google Drive API, starting from the following link:
https://console.developers.google.com/apis/library
1. Creating a Project
2. Enabling the API
After creating the project, go to the “Library” section to enable the “Google Drive API”.
Type “drive” in the search box, then click on “Google Drive API” from the list of results:
Enable the API:
3. Configuring the OAuth Consent Screen
In the sidebar (“APIs & Services”), select “OAuth Consent Screen”.
In the “Branding” section, click on “Get started”.
Set the app name and the email address in “User support email”:
Now, set the audience by selecting “External”:
Enter the email address in the contact information and click “Create”.
In order to avoid publishing the application and the associated waiting times for Google’s approval, it is necessary to enter your email address among the test users (Test users) within the Audience tab.
Now go to ‘Data access’ and set (or verify that they are already set) the following scopes: …/auth/drive.file; …/auth/drive.appdata; …/auth/drive.install.
4. Creating Credentials
In the left menu, click on “Clients” and then click “+ CREATE CLIENT”:
In the “Application type” box, select “Web application“:
Choose a name for the Web Application (this name will be displayed in the browser authentication window) and click “Add URI“. In the URI field, enter: “http://localhost:7777“.
The “Client ID” and “Client secret” credentials will be generated immediately to be used in Iperius Backup.
Google Drive API and Google One
Google Drive is Google’s cloud storage service, offering up to 15 GB of free space shared with Gmail and Google Photos. Additional space can be purchased via Google One, which offers various plans up to 30 TB.
Google Drive API: An Introduction
The Google Drive API allows interaction with cloud storage, enabling the programmatic management of files, folders, and shared drives.
Key Components of the API
The main features of the Google Drive API include:
- Uploading and downloading files
- Document search
- Sharing and managing permissions
- Creating dedicated folders for apps
Conclusion
The Google Drive API is a powerful tool for integrating cloud functionalities into applications. For more information, consult the official documentation:
Google Drive API Documentation
For any questions or doubts regarding this tutorial,
Contact us