SMSFactor.Notifications (SMSFactor v0.2.0) View Source

Wrappers around Notifications section of SMSFactor API.

Link to this section Summary

Types

Supports the following options

Link to this section Types

Specs

balance_params() :: %{notifications: %{required(atom()) => String.t()}}

Supports the following options :

  • alert_trigger The trigger that when reached sends notifications.
  • alert_email Activate or deactivate option for email(1 for true and 0 for false)
  • alert_gsm Activate or deactivate option for gsm(1 for true and 0 for false)
  • email Email you want receive notification with
  • phone_number Number you want receive notification with

Example

{
  "notification":{
  "alert_trigger" : "500",
    "alert_email": "1",
    "alert_gsm": "1",
    "email" : "ano@nyme.com",
    "phone_number" : "33612345678"
  }
}

Link to this section Functions

Specs

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

update_balance(client, params)

View Source

Specs

update_balance(Tesla.Client.t(), balance_params()) :: Tesla.Env.result()