Closed niclake closed 2 months ago
Actually... perhaps I should be using the OAuth method for authentication, vs. the Service Account method? Would that help me out here, since this spreadsheet is something that I own myself, vs. something that's part of an organization?
Ok, I did end up figuring this out.
When you create a Google service account, it gives you this email address that's
Instead, you need to copy this email address, go to your Google Sheet, share it, and grant this email editor access. The second that's done, bam, you're golden.
Feel free to close.
Glad you got it sorted out. It is in the docs, although perhaps could be highlighted more. https://theoephraim.github.io/node-google-spreadsheet/#/guides/authentication?id=service-account
I am working with the following spreadsheet: https://docs.google.com/spreadsheets/d/1-1PcHF6xzFKTaTvxnfjm6bVgo4pd5yIr3nbxsbckoFo/edit?usp=sharing
You can view this link, but have no ability to update it. I, via my personal account, am the only person who can.
I've been using this package to assist me in fetching data from this sheet to punt into some local JSON previously, so I know the connection has at least been established. I've also learned that, if you don't at least go through the process of exposing a sheet to "Anyone with the link", it can return errors when you try and access the data.
But now, when I'm attempting to write a value into a row, I receive a 403
The caller does not have permission
error, and I'm not quite sure what I'm doing wrong. I've been following the documentation and am now stuck.Here's my code that I'm working with: