Skip to main content

How to integrate Google Drive Account?

Overview

To authenticate and use the Google Drive, you will need:

  • Client ID
  • Client Secret

Step 1: Login to Google Cloud Console

  1. Go to Google Cloud Console
  2. Sign in with the Google account that has access to your project.

Step 2: Enable Required APIs

You must enable the following APIs for your project:

  1. Google Drive API
    Search : Google Drive API → Click Enable

    Google Drive API Client Creation
  2. Admin SDK API
    Search: Admin SDK API → Click Enable

  1. Go to APIs & Services > OAuth consent screen
Google Drive API Client Creation
  1. Select Clients and click Create client
Google Drive API Client Creation
  1. Select Application type as Web application

    Google Drive API Client Creation
  2. Fill the form:

    • Name: e.g., Drive Client_
    • Authorized Redirect URIs:
      • http://api.unizo.ai/callback/oauth (for Unizo app)
      • http://localhost:5000/oauth2callback (for testing)
Google Drive API Client Creation
  1. Click Create

Step 4: Get Client ID and Client Secret

After creation, a dialog will show:

  • Client ID → Use this in your application
  • Client Secret → Use this securely in your application
Google Drive API Client Creation

Step 5: Add Audience

  1. Select Audience from left navigation
  2. Under Test Users, add your own Gmail or Workspace account
  3. To publish your app click on Publish app
Google Drive API Client Creation