How to get Google app Client ID and Client Secret

by DonOfDen

Posted on 24 Aug 2019

Tags: Google API API CLIENT ID Client Secret Gmail

Turn on the Gmail API

To work with Google APIs, you will need Google API Console project and Client Id. Which you can use to call different Google APIs. We wanted to integrate Google Sign-In into my CLI Application.

The following will explains how to create Google API Console project, client ID and client Secret.

  1. Login to Google Developer Console at using your google account credentials.

  2. If you are not registered on Google developer account, then you need to accept agreement.


  1. After accepting agreement or if you are already registered on Google developer account, you will see a screen as shown below. Click on “Select a project” on top header bar.


  1. From the project selection popup click on the button with plus icon to add new project.


  1. Enter your “Project name” (in my case its “tale-gamil”) and click on “Create” button.


  1. It will open list page of API and Services. (you can also open this page from left side menu bar > “Library” menu)


  1. From the list page search API with name “Gmail API” and click on the box with name “Gmail API”.


  1. It will show the detail page of “Gmail API”, click on “Enable” button and it will return you back to dashboard.

  2. From the dashboard click on “Credentials” from the left side menu.

  3. From “Credentials” page click on “Create credentials” tab and select “OAuth Client ID”. Then click on “Save” button.

blog-head-image blog-head-image blog-head-image

It will display the popup with client id and client secret.


Share your thoughts via twitter @aravind_kumar_g ¯\_(ツ)_/¯