ExNylas.Scheduling.Bookings (ExNylas v0.11.0)

Copy Markdown View Source

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

build(payload)

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

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)

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 booking.

Examples

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

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)

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 booking.

Examples

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

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

Delete a(n) scheduling booking.

Examples

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

find(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)

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

Find a(n) scheduling booking.

Examples

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

update(conn, id, changeset, 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)

update!(conn, id, changeset, 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)