Access the Google Docs API with managed OAuth authentication. Create documents, insert and format text, and manage document content.
Reference
Get Document
GET /google-docs/v1/documents/{documentId}maton google-docs document view DOC_ID # human-readable summary (id, title, revision)
maton google-docs document view DOC_ID --json # full document payload (body, styles, etc.)Create Document
POST /google-docs/v1/documents
Content-Type: application/json
{
"title": "New Document"
}maton google-docs document create --title 'New Document'Batch Update Document
POST /google-docs/v1/documents/{documentId}:batchUpdate
Content-Type: application/json
{
"requests": [
{
"insertText": {
"location": {"index": 1},
"text": "Hello, World!"
}
}
]
}maton google-docs document write DOC_ID --text 'Hello, World!'