Lets sell some shit
links useful for authenticating google spreadsheet:
https://cmichel.io/how-to-access-google-spreadsheet-with-node/
https://github.com/theoephraim/node-google-spreadsheet#service-account-recommended-method
- Create a google sheet
- Go to https://console.developers.google.com/project
- Create new project
- Wait some time for it to appear in the list
- Choose:
side-menu
=>navbar
=>administration
=>service account
- Click
create service account
- Give it a role
editor
,owner
or other - Tick
create key
and choosejson
. Keep the downloaded file - Click
ready
- Copy new service account e-mail from
json file
and share thegsheet
with that account
action: part of businessTasks interface.
try {
- actions <- execute / throws errors
- ChangeArrayActions[action] <- send
- this.eventEmitter.emit(events.changeArrayReadyToWrite)
} catch {
- save changeArray / so that the dataChanges can be invoked later based on the saved file }
reason:
- actions can throw error and that should stop emition of changeArrayReadyToWrite
- the expected actions should be stored on error, so that they can be reloaded
- the error should state exactly which action and with what parameters went wrong, so this can be reinvoked easily