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

Interface for Nylas scheduling bookings.

Nylas docs

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)
@spec build!(map() | struct()) :: struct()

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

Examples

iex> result = ExNylas.Scheduling.Bookings.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 booking.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Bookings.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 booking.

Examples

iex> result = ExNylas.Scheduling.Bookings.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 booking.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Bookings.delete(conn, id, params)
Link to this function

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

View Source

Delete a(n) scheduling booking.

Examples

iex> result = ExNylas.Scheduling.Bookings.delete!(conn, id, params)
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) scheduling booking.

Examples

iex> {:ok, result} = ExNylas.Scheduling.Bookings.find(conn, id, params)
Link to this function

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

View Source

Find a(n) scheduling booking.

Examples

iex> result = ExNylas.Scheduling.Bookings.find!(conn, id, params)
Link to this function

update(conn, id, changeset, params \\ [])

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

update!(conn, id, changeset, params \\ [])

View Source
@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)