Liking cljdoc? Tell your friends :D

goog.workspace.docs

Clojure wrapper for the Google Docs API (v1).

Provides idiomatic Clojure functions for creating, reading, and updating Google Docs through the batch update pattern.

Auth: use csl/scoped-delegated-credentials or csl/user-credentials with the appropriate scope:

  • DocsScopes/DOCUMENTS (full read/write access)
  • DocsScopes/DOCUMENTS_READONLY (read-only access)
  • DocsScopes/DRIVE (full Drive access — docs are Drive files)
  • DocsScopes/DRIVE_FILE (only files used with this app)
  • DocsScopes/DRIVE_READONLY (read-only Drive access)

All document mutations go through batch-update, which takes a vector of request maps (kebab-case keys, coerced to camelCase internally). Convenience builders (insert-text-request, delete-content-range-request, etc.) return plain Clojure maps for use with batch-update.

Enum-typed fields in data maps (e.g. named style types) should be passed as uppercase strings (e.g. "HEADING_1", "NORMAL_TEXT").

All functions return {:data ...} on success or {:error ...} on failure.

Clojure wrapper for the Google Docs API (v1).

Provides idiomatic Clojure functions for creating, reading, and updating
Google Docs through the batch update pattern.

Auth: use csl/scoped-delegated-credentials or csl/user-credentials with
the appropriate scope:
- DocsScopes/DOCUMENTS          (full read/write access)
- DocsScopes/DOCUMENTS_READONLY (read-only access)
- DocsScopes/DRIVE              (full Drive access — docs are Drive files)
- DocsScopes/DRIVE_FILE         (only files used with this app)
- DocsScopes/DRIVE_READONLY     (read-only Drive access)

All document mutations go through batch-update, which takes a vector of
request maps (kebab-case keys, coerced to camelCase internally). Convenience
builders (insert-text-request, delete-content-range-request, etc.) return
plain Clojure maps for use with batch-update.

Enum-typed fields in data maps (e.g. named style types) should be passed
as uppercase strings (e.g. "HEADING_1", "NORMAL_TEXT").

All functions return {:data ...} on success or {:error ...} on failure.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close