Magpie.Files.Paper (Magpie v0.1.0)

Copy Markdown View Source

Paper docs stored as files (/files/paper/*) — the replacement for the deprecated /paper/docs/* API. Content is uploaded from a local file.

Summary

Functions

Creates a new Paper doc at path importing the local file file (import_format: "html", "markdown" or "plain_text").

Updates an existing Paper doc with the contents of the local file file. doc_update_policy is "update" or "overwrite"; opts accepts "paper_revision".

Functions

create(client, path, file, import_format \\ "markdown")

Creates a new Paper doc at path importing the local file file (import_format: "html", "markdown" or "plain_text").

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-paper-create

update(client, path, file, import_format \\ "markdown", doc_update_policy \\ "update", opts \\ %{})

Updates an existing Paper doc with the contents of the local file file. doc_update_policy is "update" or "overwrite"; opts accepts "paper_revision".

More info at: https://www.dropbox.com/developers/documentation/http/documentation#files-paper-update