Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.98 KB

Google_API_Setup.md

File metadata and controls

63 lines (40 loc) · 1.98 KB

Google API Setup

Creating a Service Account

  • Create a Google API project from cloud console
    • Click on select project, or create new project

new_project1 new_project2 new_project3

  • Enable Google Sheets API from the API Menu

sheets_api1 sheets_api2 sheets_api3 sheets_api4

  • Create credentials for service accounts with the needed access from the Sheets Overview page
    • click on create credentials

credentials1

  • Fill the information as shown here

credentials2 credentials3

  • Select your service account name

credentials4 credentials5

  • This information can be left blank

credentials6

  • Click on the newly created service account and navigate to the keys tab

credentials7

  • Click on Add Key and select Create new key

credentials8

  • Select JSON and click create, a json file will be downloaded in your downloads folder

credentials9

Sharing a File with the Service Account

Once a service account has been created, individual Google Sheet files should be shared with the account in order to retrieve data from the sheets. To do that, the share functionality of Google Sheets can be used where the service account email address should be given edit access to the file.

credentials9

Please note that you should use the service account email setup when creating the service account