𝗦𝗲𝘁𝘂𝗽 𝗚𝗼𝗼𝗴𝗹𝗲 𝗖𝗹𝗼𝘂𝗱 𝗖𝗿𝗲𝗱𝗲𝗻𝘁𝗶𝗮𝗹𝘀 𝗢𝗔𝘂𝘁𝗵 𝟮.𝟬 𝗶𝗻 𝗼𝗿𝗱𝗲𝗿 𝘁𝗼 𝗮𝗰𝗰𝗲𝘀𝘀 𝗚𝗼𝗼𝗴𝗹𝗲 𝗦𝗵𝗲𝗲𝘁𝘀 𝗔𝗣𝗜𝘀

Pallavi Gaikwad
Posted on 7th Mar 2024 1:24 PM | 10 min Read | 60 min Implementation
#google #google-sheets #oauth2.0

Step 1:

Open this https://console.cloud.google.com/

Click on - Create a New project

Select top drop-down OR Quick Start Project And select the project




Step 2: Note- First Pinned your APIs & Services.

Click on Enabled APIs and services

Select Google Sheets API and Enable it.



Step 3:

Create Credentials



Click on OAuth Client ID


Click on - OAuth consent screen ( App name should be the same as the Project name else you will get an error)

Add Scope - Select './auth/spreadsheets' - this will give all the permission

And select './auth/drive'


Step 4:

Create Credentials - Application type as Web app

Give any name(Google Sheet API) ---- Download OAuth client JSON file.


Step 5:

Create one Google Sheet- Save that google sheet - copy Link of Google sheet



Step 6:

Sheet data can be accessed via the below link (Go to the 'spreadSheet.values'

section and select 'get' API)

https://developers.google.com/sheets/api/reference/rest


Note: click on Try this Method you will know about your access token

Range: Sheet-name (that will allow whole sheet access) OR A2:C2.



All Comments ()
Do You want to add Comment in this Blog? Please Login ?