View Source Yousign.API.Files (yousign_ex v0.1.2)

Summary

Functions

Build a new File API Payload

Creates a new file, accepts a payload built with build_file/2 or a custom one

Get a single file

Get the content of the requested file as base64.

Lists all files

Functions

Link to this function

build_file(name, content)

View Source

Build a new File API Payload

Creates a new file, accepts a payload built with build_file/2 or a custom one

Get a single file

Link to this function

get_file_content(id, format \\ :base64)

View Source
@spec get_file_content(binary(), atom()) :: {:ok, binary()}

Get the content of the requested file as base64.

Accepts either :base64 or :binary as an optional format parameter. Default is :base64

Lists all files