Modules@robinpath/google-drive
@robinpath/google-drive
0.1.0PublicGoogle Drive module for RobinPath.
@robinpath/google-drive
Google Drive module for RobinPath.
Why use this module?
The google-drive module lets you:
- List files in Google Drive with optional query filter.
- Get file metadata by ID.
- Download file content as text.
- Upload a file to Google Drive.
- Create a new folder in Google Drive.
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/google-drive
Quick Start
1. Set up credentials
googleDrive.setCredentials "ya29.xxx"
2. List files in Google Drive with optional query filter.
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
Available Functions
| Function | Description |
|---|---|
google-drive.setCredentials | Set the OAuth2 access token for Google Drive API. |
google-drive.listFiles | List files in Google Drive with optional query filter. |
google-drive.getFile | Get file metadata by ID. |
google-drive.downloadFile | Download file content as text. |
google-drive.uploadFile | Upload a file to Google Drive. |
google-drive.createFolder | Create a new folder in Google Drive. |
google-drive.deleteFile | Permanently delete a file or folder. |
google-drive.moveFile | Move a file to a different folder. |
google-drive.copyFile | Copy a file, optionally with a new name or destination. |
google-drive.shareFile | Share a file with a user by email. |
Examples
List files in Google Drive with optional query filter.
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
Get file metadata by ID.
googleDrive.getFile "file-id"
Download file content as text.
googleDrive.downloadFile "file-id"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-drive";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
googleDrive.setCredentials "ya29.xxx"
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/s3— Amazon S3 module for complementary functionality@robinpath/dropbox— Dropbox module for complementary functionality@robinpath/box— Box module for complementary functionality@robinpath/onedrive— OneDrive module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
devops
0
@robinpath/bitbucket
v0.1.1robinpath
Bitbucket module for RobinPath.
0 downloads
...
devops
0
@robinpath/box
v0.1.1robinpath
Box module for RobinPath.
0 downloads
...
devops
0
@robinpath/cache
v0.1.1robinpath
In-memory key-value cache with optional TTL expiration for temporary data storage
0 downloads
...
devops
0
@robinpath/cloudflare
v0.1.1robinpath
Cloudflare module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/google-drive Version0.1.0
LicenseMIT
Unpacked Size5.6 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

