@robinpath/google-forms
v0.3.0
Published
Google Forms (Forms API v1) integration — create forms, add/update/delete questions and sections via batchUpdate, convert to quiz, read responses. Supports delegated OAuth2 access tokens (with refresh-token rotation) or Google Workspace Domain-Wide Delega
Downloads
141
Readme
@robinpath/google-forms
Google Forms module for RobinPath.
Why use this module?
The google-forms module lets you:
- getForm
- createForm
- updateForm
- listResponses
- getResponse
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
robinpath add @robinpath/google-formsQuick Start
1. Set up credentials
google-forms.setCredentials "your-credentials"2. getForm
google-forms.getFormAvailable Functions
| Function | Description |
|----------|-------------|
| google-forms.setCredentials | Configure google-forms credentials. |
| google-forms.getForm | getForm |
| google-forms.createForm | createForm |
| google-forms.updateForm | updateForm |
| google-forms.listResponses | listResponses |
| google-forms.getResponse | getResponse |
| google-forms.addQuestion | addQuestion |
| google-forms.updateQuestion | updateQuestion |
| google-forms.deleteQuestion | deleteQuestion |
| google-forms.addSection | addSection |
| google-forms.getFormInfo | getFormInfo |
| google-forms.batchUpdate | batchUpdate |
| google-forms.convertToQuiz | convertToQuiz |
Examples
getForm
google-forms.getFormcreateForm
google-forms.createFormupdateForm
google-forms.updateFormIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-forms";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
google-forms.setCredentials "your-credentials"
google-forms.getForm
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/google-sheets— Google Sheets module for complementary functionality@robinpath/google-calendar— Google Calendar module for complementary functionality@robinpath/google-contacts— Google Contacts module for complementary functionality@robinpath/gmail— Gmail module for complementary functionality@robinpath/outlook— Outlook module for complementary functionality
License
MIT
