Spatio.Api.Folders (spatio_sdk v0.0.2)
API calls for all endpoints tagged Folders.
Summary
Functions
Create an email folder.
Delete an email folder.
List the caller's email folders.
List emails inside a folder.
Move emails into a folder.
Update an email folder.
Functions
@spec create_email_folder( Tesla.Env.client(), Spatio.Model.CreateEmailFolderRequest.t(), keyword() ) :: {:ok, Spatio.Model.EmailFolder.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Create an email folder.
Parameters
connection(Spatio.Connection): Connection to servercreate_email_folder_request(CreateEmailFolderRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.EmailFolder.t}on success{:error, Tesla.Env.t}on failure
@spec delete_email_folder(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Delete an email folder.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec list_email_folders( Tesla.Env.client(), keyword() ) :: {:ok, Spatio.Model.EmailFolderListResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
List the caller's email folders.
Parameters
connection(Spatio.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.EmailFolderListResponse.t}on success{:error, Tesla.Env.t}on failure
@spec list_folder_emails(Tesla.Env.client(), String.t(), keyword()) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
List emails inside a folder.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec move_emails_to_folder( Tesla.Env.client(), String.t(), Spatio.Model.MoveEmailsRequest.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Move emails into a folder.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t):move_emails_request(MoveEmailsRequest):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec update_email_folder( Tesla.Env.client(), String.t(), Spatio.Model.UpdateEmailFolderRequest.t(), keyword() ) :: {:ok, Spatio.Model.EmailFolder.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Update an email folder.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t):update_email_folder_request(UpdateEmailFolderRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.EmailFolder.t}on success{:error, Tesla.Env.t}on failure