ExNylas.Providers (ExNylas v0.11.0)

Copy Markdown View Source

Interface for Nylas providers.

Nylas docs

Summary

Functions

Detect the provider for an email address.

Detect the provider for an email address.

Functions

detect(conn, params \\ [])

@spec detect(ExNylas.Connection.t(), Keyword.t() | list()) ::
  {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}

Detect the provider for an email address.

Examples

iex> {:ok,  detect} = ExNylas.Providers.detect(conn, %{email: email} = _params)

detect!(conn, params \\ [])

@spec detect!(ExNylas.Connection.t(), Keyword.t() | list()) :: ExNylas.Response.t()

Detect the provider for an email address.

Examples

iex> detect = ExNylas.Providers.detect(conn, %{email: email} = _params)