1.0.0 • Published 2 years ago

@rray/googleapis v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@rray/googleapis

A drop-in slim replacement to googleapis subset.

Refactor notice

This is based on a heavily refactored code from googleapis and googleapis-common.

Supported modules

Currently, only sheets.

Usage

import { GoogleAuth } from 'google-auth-library'
// import { google } from 'googleapis'
// import * as google from '@googleapis/sheets'
import * as google from '@rray/googleapis'

const auth = new GoogleAuth({
  keyFile: serviceCredentials,
  scopes: ['https://www.googleapis.com/auth/spreadsheets'],
});
const { spreadsheets } = google.sheets({ version: 'v4', auth }) // version is not required

console.log(spreadsheets) // { batchUpdate, create, get, developerMetadata, sheets, values }

License

Apache-2.0

1.0.0

2 years ago