Skip to content

google

const google: object

Defined in: index.ts:8

Read-only Google Docs and Sheets helpers, each authenticated with the service account.

documents: object

Google Docs helpers.

get: (id) => Promise<Return<Schema$Document>> = getDocument

Reads a Google Doc by id; resolves with a Return tuple of error, document and elapsed milliseconds.

string

Promise<Return<Schema$Document>>

spreadsheets: object

Google Sheets helpers.

get: (id) => Promise<Return<Schema$Spreadsheet>> = getSpreadsheet

Reads a spreadsheet by id, grid data included; resolves with a Return tuple of error, spreadsheet and elapsed ms.

string

Promise<Return<Schema$Spreadsheet>>