1.0.1 • Published 4 years ago

godrive v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Google Drive Index

Installation

npm install godrive

Init

const GoogleDrive = require('godrive')
const gd = new GoogleDrive({
  root_id: '',          // google drive folder id, default 'root',
  client_id: '',        // google drive api client_id
  client_secret: '',    // google drive api client_secret
  refresh_token: '',    // google drive api refresh_token
})

Methods

await gd.getMetadata(path)
await gd.getObjects(id)
await gd.getRawContent(id, range)

Properties

gd.folderType
1.0.1

4 years ago

1.0.0

4 years ago