1.0.1 • Published 3 years ago
@hfn-checkins/spreadsheet-editor v1.0.1
Editing Google Sheet With Service Account
- Visit Google Cloud Console
- Create a new project or select an existing project to enable the Google Sheets API.
- Create a Service AccountwithOwneraccess.
- Create a KEYfor the newly addedService Account. This key would be automatically downloaded which we'll use to authenticate theRobot User.
- Visit APIs and Services > Libraryand ENABLE theGoogle Sheets APIto interact with aGoogle Sheet.
- Create a Google Sheetin your user account and click onShare. Share it with theRobot User- the email would be something likeservice-accountu3928492@appsparkler-sheet-editor.iam.gserviceaccount.comwithEditoraccess.
Service Account is a fancy name for a
Robot User.
Now you can read, write, append cell values for any spreadsheet to which the Robot User has access to.