0.3.0 • Published 3 years ago

google-sheets-bootstrapping v0.3.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

Google Sheets Bootstrapping

March 8, 2022

Intro

Bootstraps a project to a google sheets app Exposes three functions to help with tihs: 1. loadCredentials

  • param - credPath: String
  • return: GoogleCredentialsInterface
  • loads in a google credentials file and stores in memory as a GoogleCredentialsInterface
  1. createAuthToken
  • param - SERVICE_ACCOUNT_EMAIL
  • param - SERVICE_ACCOUNT_PRIVATE_KEY
  • return: JWT
  • given a google email and private key from the credentials file, creates a Javascript Web Token to google sheets
  1. createSpreadSheetConnection
  • param: authClientObject
  • return: sheets object
  • given a google credentials object, returns a connection to google sheets in object form

Usage

see src/api/tests

Authors and acknowledgment

Joseph Skaf joseph@skafsjustbasics.com

License

MIT