Creat the Google drive service needed to hit the Drive API
- Source:
Requires
- module:NPM:googleapis
- module:../googleAuthHelper
Members
(inner) _sheetService :Object
holds the sheetService created by init()
Type:
- Object
- Source:
Methods
(inner) getSheetServiceDefault() → {Object}
Get the default Google Sheet API service.
- Source:
Returns:
the actual Google Sheet Service
- Type
- Object
(inner) init() → {Object}
This needs to be called just once.
The results of this function are stored in _sheetService
.
If no service is passed to init it grabs the default Google Sheet Service.
Passing the service in makes it easy to do unit testing since a Fake can
be passed in.
- Source:
Returns:
- the service. Typically not needed by caller.
- Type
- Object