Closed Meandmybadself closed 9 years ago
likely an issue with your callback! the sheet isnt ready to use until the callback completes (where you are writing console.log
yet you are returning gd (and im assuming not waiting for it to be done) when you are then trying to use it.
Check out https://github.com/caolan/async it can help with managing callbacks and "control flow"
That's exactly the problem. Was attempting access before the auth callback was complete.
My bad. Thanks for the comment & all your work, sir.
Howdy.
Trying to access a private document using the Service Account method. Have verified that the document is shared with the email address associated with the defined service account.
This is using node v.4.0.0 on OSX. Tried using earlier versions of node to no luck.
Doing so nets me the following error:
Code requesting the spreadsheet is:
Apologies if I'm doing something blatantly wrong here.