SMSFactor.Lists (SMSFactor v0.2.0) View Source

Wrappers around Lists section of SMSFactor API.

Link to this section Summary

Types

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"
        }
      ]
    }
  }
}

Link to this section Types

Specs

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"
        }
      ]
    }
  }
}

Link to this section Functions

Specs

blacklist(Tesla.Client.t()) :: Tesla.Env.result()
Link to this function

clear_list(client, list_id)

View Source

Specs

clear_list(Tesla.Client.t(), String.t()) :: Tesla.Env.result()
Link to this function

create_list(client, params)

View Source

Specs

Link to this function

delete_list(client, list_id)

View Source

Specs

delete_list(Tesla.Client.t(), String.t()) :: Tesla.Env.result()
Link to this function

get_list(client, list_id)

View Source

Specs

Specs

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

Specs