Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 2.17 KB

Google API Guide.md

File metadata and controls

62 lines (39 loc) · 2.17 KB

Getting Started with Google APIs

This guide will walk you through the basic steps of getting started with Google APIs for this Project, making it easy for beginners.

1. Create a Google Cloud Project

First, create your Google Cloud account using your Gmail ID.

To use Google APIs, you'll need a Google Cloud Project. It's free to create and easy to manage. Head over to: https://console.cloud.google.com/

Click Create Project and give it a descriptive name.

2. Enable Required APIs

Go back to the API Explorer Page and find the specific API you want to use.
For this project you need:

  • Google People API
  • Gmail API
  • Google Calendar API
  • Google Drive API
  • Google Tasks API

Click on it and navigate to the Enable API section.

3. Create App

Go to This Page and Create App.

Remember: (Set Publishing status: Testing App, User type: External ) and fill other required details.

⚠️ Required Scopes for App:

Next add test users (the account from which you are going to fetch app data).

4. Create Credentials

To access the API, you'll need credentials
Go to the credentials then:

  1. Click Create Credentials > OAuth client ID.
  2. Click Application type > Desktop app
  3. Don't change the application name. It can sometimes cause some unwanted error
  4. Click OK
  5. Download the JSON file,
  6. Change the JSON file name to exactly client_secret.json and place it in src/configs/ folder of the project.

4. Install the Client Library

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

5. Done!