OSTIP_EXARI v0.1.0 Swagger.Client.Api.ApiDocsmailboxesFormat View Source

API calls for all endpoints tagged ApiDocsmailboxesFormat.

Link to this section Summary

Functions

Retrieve the current state of a mailbox

List all mailboxes

Change the state of a mailbox. (Note - implicitly creates the mailbox)

Link to this section Functions

Link to this function delete(connection, mailbox_name, opts \\ []) View Source
delete(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, nil} | {:error, Tesla.Env.t()}

Destroy a mailbox.

Parameters

  • connection (Swagger.Client.Connection): Connection to server
  • mailbox_name (String.t): Name of the mailbox
  • opts (KeywordList): [optional] Optional parameters

Returns

{:ok, %{}} on success {:error, info} on failure

Link to this function get(connection, mailbox_name, opts \\ []) View Source
get(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, nil} | {:error, Tesla.Env.t()}

Retrieve the current state of a mailbox.

Parameters

  • connection (Swagger.Client.Connection): Connection to server
  • mailbox_name (String.t): Name of the mailbox
  • opts (KeywordList): [optional] Optional parameters

Returns

{:ok, %{}} on success {:error, info} on failure

Link to this function list(connection, opts \\ []) View Source
list(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}

List all mailboxes.

Parameters

  • connection (Swagger.Client.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

Returns

{:ok, %{}} on success {:error, info} on failure

Link to this function update(connection, mailbox_name, old_messages, new_messages, opts \\ []) View Source
update(Tesla.Env.client(), String.t(), integer(), integer(), keyword()) ::
  {:ok, nil} | {:error, Tesla.Env.t()}

Change the state of a mailbox. (Note - implicitly creates the mailbox).

Parameters

  • connection (Swagger.Client.Connection): Connection to server
  • mailbox_name (String.t): Name of the mailbox
  • old_messages (integer()): Count of old messages in the mailbox
  • new_messages (integer()): Count of new messages in the mailbox
  • opts (KeywordList): [optional] Optional parameters

Returns

{:ok, %{}} on success {:error, info} on failure