Skip to main content

Pre requisites

 

  • Google Drive API enabled
  • JSON file with credentials

Enable Google Drive API:
Go to the Google Developer Console.
Create a new project or select an existing one.
In the left pane, click "Library."
Search for "Google Drive API" in the list of available APIs.
Click "Google Drive API".
Click "enable" to enable the API for your project.

Create API credentials:
After enabling the API, click "Credentials" in the left pane.
Click "Create credentials" and select "Service account".
Complete the form with the required information (service account name, roles, etc.).
Click "Create".
Select the type of service account key you want (JSON recommended).
Click "Create" and a JSON file with the service credentials will be downloaded.