- Set up a Google Developer Account: Go to the Google Developer Console, create a project, and enable the Gmail API for that project. This will give you a credentials.json file that you’ll need later.
- Install the Google Client Library: Run the following command to install the Google Client Library: