Create A Google Credential OAuth Client ID

| July 3, 2022 | 784 views | Google Sheets API PHP Client

To be able to connect your PHP Web Application to Google Cloud and access your enabled Google Sheets API, you will be needing a valid credential that would authenticate your registered application. This is important because requests made from anonymous applications are rejected.


Step 1.

Click the following

  • Navigation Menu
  • APIs & Services
  • Credentials

Step 2.

Click “CREATE CREDENTIALS” and click “OAuth client ID“.

Step 3.

Click “Application type*“.

Click “Web application“.

For this test, we will be trying the web application”.

Step 4.

Input the “name“.

For this test, input “http://localhost” to the “Authorized redirect URIs“. This is required for this is where the API server will redirect the user after the user completes the authorization flow.

Leave “Authorized JavaScript origins” empty for this test.

Click “CREATE“.


A Google OAuth client credential has been created.

Download and secure the JSON format for later usage.



Leave a Reply

Your email address will not be published.