Enable GMAIL API in your account, just click on button ENABLE THE GMAIL API
Get your configuration and save it in the credentials.json, in the project directory
First time you run, you need to authorize access:
- Open the URL in your browser
- Click the Accept Button
- Copy the code and paste into the terminal and press Enter