How to generate Google credentials:
- Navigate to Google Cloud's Console
- Login with desired Google account
- Create/select project
- (Optional) Configure OAuth consent screen
- Go to
APIs & Services
->OAuth consent screen
- Select User Type
- Click
CREATE
- Enter required fields
- Click
SAVE AND CONTINUE
- Click
SAVE AND CONTINUE
(no scopes need to be added) - (Optional) Add test users
- Click
SAVE AND CONTINUE
- Go to
- Create OAuth credentials
- Go to
APIs & Services
->Credentials
- Click
CREATE CREDENTIALS
- Select
OAuth client ID
- Select
Desktop app
application type - Enter a client name
- Click
CREATE
- Download JSON
- Go to
- Enable APIs
- Go to
APIs & Services
->Library
- Search for
Gmail
- Click on
Gmail API
- Click
ENABLE
- Go to
APIs & Services
->Library
- Search for
YouTube
- Click on
YouTube Data API v3
- Click
ENABLE
- Go to
- Generate Pickle file
- Move/Copy downloaded JSON to
./credentials/google-credentials.json
- Run token generation script:
cd ./scripts && python ./generateTokenFile.py
- Login through Google
- Close window
- Move/Copy downloaded JSON to