Skip to content

Weldable/integration-google-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@weldable/integration-google-drive

Google Drive file actions for Weldable.

Part of the Weldable integration library — see @weldable/integration-core for the full catalog.

Install

npm install @weldable/integration-google-drive @weldable/integration-core

@weldable/integration-core is a peer dependency and must be installed alongside this package.

Usage

import integration from '@weldable/integration-google-drive'

// Find files
const find = integration.actions.find(a => a.id === 'google_drive.find')!

const files = await find.execute(
  { query: 'Q1 report', type: 'spreadsheet', limit: 5 },
  ctx, // ActionContext from your Weldable-compatible host
)

// Get file metadata
const getFile = integration.actions.find(a => a.id === 'google_drive.get_file')!

const file = await getFile.execute(
  { fileId: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms' },
  ctx,
)

console.log(file.name, file.webViewLink)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors