ExNylas.Scheduling.Sessions (ExNylas v0.11.0)

Copy Markdown View Source

Interface for Nylas scheduling sessions.

Nylas docs

Summary

Functions

Create and validate a scheduling session, use create/update to send to Nylas.

Create and validate a scheduling session, use create/update to send to Nylas.

Create a(n) scheduling session.

Create a(n) scheduling session.

Delete a(n) scheduling session.

Delete a(n) scheduling session.

Functions

build(payload)

@spec build(map() | struct()) :: {:ok, struct()} | {:error, Ecto.Changeset.t()}

Create and validate a scheduling session, use create/update to send to Nylas.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Sessions.build(payload)

build!(payload)

@spec build!(map() | struct()) :: struct()

Create and validate a scheduling session, use create/update to send to Nylas.

Examples

iex> result = ExNylas.Scheduling.Sessions.build!(payload)

create(conn, body, params \\ [])

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

Create a(n) scheduling session.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Sessions.create(conn, body, params)

create!(conn, body, params \\ [])

@spec create!(ExNylas.Connection.t(), map(), Keyword.t() | map()) ::
  ExNylas.Response.t()

Create a(n) scheduling session.

Examples

iex> result = ExNylas.Scheduling.Sessions.create(conn, body, params)

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

@spec delete(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) ::
  {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}

Delete a(n) scheduling session.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Sessions.delete(conn, id, params)

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

Delete a(n) scheduling session.

Examples

iex> result = ExNylas.Scheduling.Sessions.delete!(conn, id, params)