SMSFactor.Webhooks (SMSFactor v0.2.0) View Source

Wrappers around Webhooks section of SMSFactor API.

Link to this section Summary

Types

Webhook Type can be any of the following

Link to this section Types

Specs

webhook_params() :: %{webhook: %{type: webhook_type(), url: String.t()}}

Specs

webhook_type() :: String.t()

Webhook Type can be any of the following :

  • "MO"
  • "DLR"
  • "STOP"
  • "CLICKER"
  • "BALANCE_ALERT"

Link to this section Functions

Link to this function

create_webhook(client, params)

View Source

Specs

create_webhook(Tesla.Client.t(), webhook_params()) :: Tesla.Env.result()
Link to this function

delete_webhook(client, webhook_id)

View Source

Specs

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

retrieve_webhooks(client)

View Source

Specs

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

update_webhook(client, webhook_id, params)

View Source

Specs

update_webhook(Tesla.Client.t(), integer(), webhook_params()) ::
  Tesla.Env.result()