View Source ExNylas.Scheduling.Sessions (ExNylas v0.9.0)

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

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

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

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

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

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

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

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

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

View Source

Delete a(n) scheduling session.

Examples

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