View Source ExNylas.Scheduling.Bookings (ExNylas v0.9.0)
Interface for Nylas scheduling bookings.
Summary
Functions
Create and validate a scheduling booking, use create/update to send to Nylas.
Create and validate a scheduling booking, use create/update to send to Nylas.
Create a(n) scheduling booking.
Create a(n) scheduling booking.
Delete a(n) scheduling booking.
Delete a(n) scheduling booking.
Find a(n) scheduling booking.
Find a(n) scheduling booking.
Update a(n) scheduling booking.
Update a(n) scheduling booking.
Functions
@spec build(map() | struct()) :: {:ok, struct()} | {:error, Ecto.Changeset.t()}
Create and validate a scheduling booking, use create/update to send to Nylas.
Examples
iex> {:ok, result} = ExNylas.Scheduling.Bookings.build(payload)
Create and validate a scheduling booking, use create/update to send to Nylas.
Examples
iex> result = ExNylas.Scheduling.Bookings.build!(payload)
@spec create(ExNylas.Connection.t(), map(), Keyword.t() | map()) :: {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}
Create a(n) scheduling booking.
Examples
iex> {:ok, result} = ExNylas.Scheduling.Bookings.create(conn, body, params)
@spec create!(ExNylas.Connection.t(), map(), Keyword.t() | map()) :: ExNylas.Response.t()
Create a(n) scheduling booking.
Examples
iex> result = ExNylas.Scheduling.Bookings.create(conn, body, params)
@spec delete(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}
Delete a(n) scheduling booking.
Examples
iex> {:ok, result} = ExNylas.Scheduling.Bookings.delete(conn, id, params)
@spec delete!(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: ExNylas.Response.t()
Delete a(n) scheduling booking.
Examples
iex> result = ExNylas.Scheduling.Bookings.delete!(conn, id, params)
@spec find(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}
Find a(n) scheduling booking.
Examples
iex> {:ok, result} = ExNylas.Scheduling.Bookings.find(conn, id, params)
@spec find!(ExNylas.Connection.t(), String.t(), Keyword.t() | map()) :: ExNylas.Response.t()
Find a(n) scheduling booking.
Examples
iex> result = ExNylas.Scheduling.Bookings.find!(conn, id, params)
@spec update(ExNylas.Connection.t(), String.t(), map(), Keyword.t() | map()) :: {:ok, ExNylas.Response.t()} | {:error, ExNylas.Response.t()}
Update a(n) scheduling booking.
Examples
iex> {:ok, result} = ExNylas.Scheduling.Bookings.update(conn, id, body, params)
@spec update!(ExNylas.Connection.t(), String.t(), map(), Keyword.t() | map()) :: ExNylas.Response.t()
Update a(n) scheduling booking.
Examples
iex> result = ExNylas.Scheduling.Bookings.update!(conn, id, body, params)