View Source ExNylas.Attachments (ExNylas v0.9.0)

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

Link to this function

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

View Source
@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)
Link to this function

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

View Source
@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)
Link to this function

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

View Source
@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)
Link to this function

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

View Source

Find a(n) attachment.

Examples

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