Interface for Nylas attachments.
Summary
Functions
Download an attachment. Message ID is required.
Download an attachment. Message ID is required.
Find a(n) attachment.
Find a(n) attachment.
Functions
@spec download(ExNylas.Connection.t(), String.t(), Keyword.t() | list()) :: {:ok, String.t()} | {:error, ExNylas.Response.t()}
Download an attachment. Message ID is required.
Examples
iex> {:ok, result} = ExNylas.Attachments.download(conn, id, message_id: message_id)
@spec download!(ExNylas.Connection.t(), String.t(), Keyword.t() | list()) :: String.t()
Download an attachment. Message ID is required.
Examples
iex> result = ExNylas.Attachments.download!(conn, id, message_id: message_id)
@spec find(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}
Find a(n) attachment.
Examples
iex> {:ok, result} = ExNylas.Attachments.find(conn, id, params)
@spec find!(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: ExNylas.Response.t()
Find a(n) attachment.
Examples
iex> result = ExNylas.Attachments.find!(conn, id, params)