Class: SignalWire::REST::Namespaces::VerifiedCallersResource
- Inherits:
-
CrudResource
- Object
- BaseResource
- CrudResource
- SignalWire::REST::Namespaces::VerifiedCallersResource
- Defined in:
- lib/signalwire/rest/namespaces/verified_callers.rb
Overview
Verified caller ID management with verification flow.
Instance Method Summary collapse
-
#initialize(http) ⇒ VerifiedCallersResource
constructor
A new instance of VerifiedCallersResource.
- #redial_verification(caller_id) ⇒ Object
- #submit_verification(caller_id, **kwargs) ⇒ Object
Methods inherited from CrudResource
#create, #delete, #get, #list, #update, update_method, update_method=
Constructor Details
#initialize(http) ⇒ VerifiedCallersResource
Returns a new instance of VerifiedCallersResource.
10 11 12 |
# File 'lib/signalwire/rest/namespaces/verified_callers.rb', line 10 def initialize(http) super(http, '/api/relay/rest/verified_caller_ids') end |
Instance Method Details
#redial_verification(caller_id) ⇒ Object
14 15 16 |
# File 'lib/signalwire/rest/namespaces/verified_callers.rb', line 14 def redial_verification(caller_id) @http.post(_path(caller_id, 'verification')) end |
#submit_verification(caller_id, **kwargs) ⇒ Object
18 19 20 |
# File 'lib/signalwire/rest/namespaces/verified_callers.rb', line 18 def submit_verification(caller_id, **kwargs) @http.put(_path(caller_id, 'verification'), kwargs) end |