Skip to content

@uriva/p2b-google-docs

1.0.1
Skill

Description

Google Docs and Sheets utils using safescript..

Download
Verified
tank install @uriva/p2b-google-docs

Google Docs Skill

Allows bot to interact with Google Docs and Google Sheets.

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 { createDocument } from "./scripts/google-docs.ss"
import { createSheet } from "./scripts/google-sheets.ss"

export const myTask = async () => {
    const doc = await createDocument(process.env.GOOGLE_TOKEN, "New Doc")
    const sheet = await createSheet(process.env.GOOGLE_TOKEN, "some-spreadsheet-id", "New Sheet")
}

Command Palette

Search packages, docs, and navigate Tank