➤ To configure the server settings, the following fields are required.
- Name
- Admin Email
- Description
- Process
- JSON Credential Details
- Country
- City
- Time Zone
➤ Developer Setup Guide
1. Create Project
- Sign in to the Google Cloud Console (https://console.cloud.google.com/)
- Select New Project from the projects drop down.
- Enter Project Name and click Create.
2. Enable API
- In the left navigation menu, click API & Services.
- Click +Enable API & Services.
- Search and enable following APIs:
- Gmail
- Google Drive API
- Admin SDK API
Create Credentials
- Under API & Services, navigate to Credentials tab.
- Click create credentials and choose Service account key.
- Enter required fields.
- Choose key type as JSON.
- Click Continue. JSON file will get downloaded.
Adding Scopes
- Navigate to Google Domain wide Delegation.(https://admin.google.com/ac/owl/domainwidedelegation)
- In the left pane, click on Security >> Access and Data Control >> API Controls.
- Under Domain wide delegation click Manage Domain Wide Delegation.
- Click Add New >> Enter the clientId (you can find this value inside the JSON credentials file that you downloaded from the Google Cloud Console in the previous step).
- Add following scopes under scope:
- https://www.googleapis.com/auth/gmail.labels
- https://www.googleapis.com/auth/gmail.readonly
- https://www.googleapis.com/auth/gmail.readonly
- https://www.googleapis.com/auth/gmail.readonly
- https://mail.google.com/
- https://www.googleapis.com/auth/admin.directory.user.readonly
- https://www.googleapis.com/auth/gmail.modify
- https://www.googleapis.com/auth/drive.readonly
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive