@rray/googleapis

1.0.0 • Public • Published

@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

/@rray/googleapis/

    Package Sidebar

    Install

    npm i @rray/googleapis

    Weekly Downloads

    0

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    17 kB

    Total Files

    6

    Last publish

    Collaborators

    • chalker