SMSFactor.Lists (SMSFactor v0.5.0)

View Source

Wrappers around Lists section of SMSFactor API.

Summary

Types

list_params()

@type list_params() :: %{list: %{required(atom()) => String.t()}}

Example

{
  "list": {
    "name": "My list",
    "contacts": {
      "gsm": [
        {
          "value": "33612345678",
          "info1": "Louis",
          "info2": "de Broglie",
          "info3": "1892",
          "info4": "Dieppe"
        },
        {
          "value": "33612345677",
          "info1": "Richard",
          "info2": "Feynman",
          "info3": "1918",
          "info4": "New-York"
        }
      ]
    }
  }
}

Functions

blacklist(client)

@spec blacklist(Tesla.Client.t()) :: Tesla.Env.result()

clear_list(client, list_id)

@spec clear_list(Tesla.Client.t(), String.t()) :: Tesla.Env.result()

create_list(client, params)

@spec create_list(Tesla.Client.t(), list_params()) :: Tesla.Env.result()

delete_list(client, list_id)

@spec delete_list(Tesla.Client.t(), String.t()) :: Tesla.Env.result()

get_list(client, list_id)

@spec get_list(Tesla.Client.t(), String.t()) :: Tesla.Env.result()

get_lists(client)

@spec get_lists(Tesla.Client.t()) :: Tesla.Env.result()

npai(client)

@spec npai(Tesla.Client.t()) :: Tesla.Env.result()