This guide will walk you through the basic steps of getting started with Google APIs for this Project, making it easy for beginners.
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.
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.
Go to This Page and Create App.
Remember: (Set Publishing status: Testing App, User type: External ) and fill other required details.
Next add test users (the account from which you are going to fetch app data).
To access the API, you'll need credentials
Go to the credentials then:
- Click Create Credentials > OAuth client ID.
- Click Application type > Desktop app
- Don't change the application name. It can sometimes cause some unwanted error
- Click OK
- Download the JSON file,
- Change the JSON file name to exactly
client_secret.json
and place it insrc/configs/
folder of the project.
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib