SMSFactor.Webhooks (SMSFactor v0.5.0)
View SourceWrappers around Webhooks section of SMSFactor API.
Summary
Types
@type webhook_params() :: %{webhook: %{type: webhook_type(), url: String.t()}}
@type webhook_type() :: String.t()
Webhook Type can be any of the following :
- "MO"
- "DLR"
- "STOP"
- "CLICKER"
- "BALANCE_ALERT"
Functions
@spec create_webhook(Tesla.Client.t(), webhook_params()) :: Tesla.Env.result()
@spec delete_webhook(Tesla.Client.t(), String.t()) :: Tesla.Env.result()
@spec retrieve_webhooks(Tesla.Client.t()) :: Tesla.Env.result()
@spec update_webhook(Tesla.Client.t(), integer(), webhook_params()) :: Tesla.Env.result()