Instructions for creating Gmail API App

Tram Ho

First access the link https://console.developers.google.com/

1

Log in, and select Library to enable the necessary services (here we need the Gmail API).

2

3

4

After enabling the Gmail Api service, we proceed to create Credentials

5

6

7

This paragraph it requires you to Config Consent Screen first, you click here to move on to creating that section

8

9

10

The App domain part we enter the home page. For example http://domain.com/

In the Authorize domains section we enter the primary domain without a protocol and path. For example domain.com

11

Then we continuously click Save and Continue to complete the step to create Consent Screen

12

13

14

Now we go back to creating Credentials

15

Authorized JavaScript origins: We entered the homepage link without a path and /

Authorized redirect URIs: This url tells google redirect to our website and generate token file. For example we have domain name is domain.com would be: https://domain.com/oauth/gmail/callback

16

So we are done

If our application is in test mode, we need to add a List user to be able to access.

17

18

Now go back to the Client ID and Client secret config pages and press Connect API!

Good luck!

Share the news now