ExNylas.Attachments (ExNylas v0.11.0)

Copy Markdown View Source

Interface for Nylas attachments.

Nylas docs

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

download(connection, id, params \\ [])

@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)

download!(connection, id, params \\ [])

@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)

find(conn, id, params \\ [])

@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)

find!(conn, id, params \\ [])

Find a(n) attachment.

Examples

iex> result = ExNylas.Attachments.find!(conn, id, params)