@uriva/p2b-google-drive
1.0.1Skill
Description
Google Drive utils using safescript..
Download
Verified
tank install @uriva/p2b-google-driveGoogle Drive Skill
Allows bot to interact with Google Drive.
Pass the configured secret name as googleToken when calling tools.
Do not pass env var names (for example GOOGLE_TOKEN) as the token value.
All functions return { success, result, error }.
Example usage
import { listFilesByFolder, searchDrive } from "./scripts/google-drive.ss"
export const myTask = async () => {
const files = await listFilesByFolder(process.env.GOOGLE_TOKEN, "some-folder-id")
console.log(files)
}