Class: Nexmo::Alerts
- Inherits:
-
Namespace
- Object
- Namespace
- Nexmo::Alerts
- Defined in:
- lib/nexmo/alerts.rb
Instance Method Summary collapse
-
#list ⇒ Response
Request the list of phone numbers opted out from your campaign.
-
#remove(params) ⇒ Response
(also: #resubscribe)
Remove a phone number from the opt-out list.
-
#send(params) ⇒ Response
Send an alert to your user.
Instance Method Details
#list ⇒ Response
Request the list of phone numbers opted out from your campaign.
13 14 15 |
# File 'lib/nexmo/alerts.rb', line 13 def list request('/sc/us/alert/opt-in/query/json') end |
#remove(params) ⇒ Response Also known as: resubscribe
Remove a phone number from the opt-out list.
28 29 30 |
# File 'lib/nexmo/alerts.rb', line 28 def remove(params) request('/sc/us/alert/opt-in/manage/json', params: params, type: Post) end |
#send(params) ⇒ Response
Send an alert to your user.
63 64 65 |
# File 'lib/nexmo/alerts.rb', line 63 def send(params) request('/sc/us/alert/json', params: params, type: Post) end |