Sunday 1 October 2017

How to create Google project for API Services

Step 1 - Go to https://console.developers.google.com/. It will ask for Gmail login credentials then login with the user who has administrator-level permission. You will be redirected to API and Services dashboard.


Google API and Services Dashboard
Google APPS Dashboard


Step 2 - Click on “My Project” link near to search bar. Then a lightbox will be open from where you can create a Google project. Click on “+” button, you will be redirected to  

Google App New Project
Google App New Project

Fill the name of the project under project name field and click on “Create” button, you will be redirected to the dashboard of Google console. Click on “My Project” near search bar a lightbox will open, click on the project recently created.

Google app project list
Google app project list

Step 3 - After clicking on project link you redirect to the project-specific dashboard from where you will manage this project. Click on “Enable APIs and services” it will redirect to you API library from where we can select required API scope for our project.
      Type API scope name in the search box- for example, we required Admin and Google Drive API scope for our project first we will start with Admin scope.

Google API Library
Google API Library
Add Google Drive API
Add Google Drive API

For example, Project requirement is to use Google Drive API then - 
Select Google Drive API you will be redirected to API enable. Click on “ENABLE” button. Now Google Drive API scope is included in our project.







Enable Google API
Enable Google API

Step - 4: OAuth consent screen

From left menu click on “Credentials” link you will be redirected to credentials page. Then click on “OAuth consent screen” you will be redirected to the following page then fill up information according to requirement.

Google OAuth Consent Screen
Set Google OAuth Consent Screen
Click on save button you will be redirected to “Credentials” page from here we will create Credentials for this project.

Step - 5: Create Credentials
From left menu click on “Credentials” link you will be redirected to credentials page. Then click on “Create Credentials” button, a dropdown will be open.

Select OAuth Type
Select OAuth Type
From here you can select the type of credentials to interact with Google API.










Google OAuth Credentials
Google OAuth Credentials 


For this project, we will create OAuth and in return, we will get 
Client ID and Client Secret. These credentials are required to complete process to get an access token which is required to hit REST API.








Google App Client ID and Client Secret
Google App Client ID and Client Secret
Now you have Google App Client ID and Client Secret, These properties will help us to get access token on behalf of the user.






















No comments:

Post a Comment