Setting up GCloud Console Project

The very first step should be to create and set up a GCloud Console Project. Following are the steps to do so:

Then the next step is to create a service account, use the following steps to do so:

Now it’s time to set up the libraries, use the following steps to set it up:

    1. Admin SDK

    2. Gmail API

    3. Google Drive API

    4. Google Calendar API

    5. People API

https://mail.google.com/
https://www.googleapis.com/auth/gmail.readonly,
https://www.googleapis.com/auth/gmail.settings.sharing
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.modify,
https://www.googleapis.com/auth/gmail.labels
https://www.googleapis.com/auth/gmail.compose
https://www.googleapis.com/auth/gmail.send,
https://www.googleapis.com/auth/gmail.insert
https://www.googleapis.com/auth/contacts.other.readonly
https://www.googleapis.com/auth/contacts.readonly,
https://www.googleapis.com/auth/contacts,
https://www.googleapis.com/auth/drive.readonly,
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/calendar,
https://www.googleapis.com/auth/calendar.events,
https://www.googleapis.com/auth/cloud-platform 
https://www.googleapis.com/auth/admin.directory.user.security,
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/gmail.addons.current.action.compose