Class: Telnyx::Resources::VerifiedNumbers::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::VerifiedNumbers::Actions
- Defined in:
- lib/telnyx/resources/verified_numbers/actions.rb
Overview
Verified Numbers operations
Instance Method Summary collapse
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
-
#submit_verification_code(phone_number, verification_code:, request_options: {}) ⇒ Telnyx::Models::VerifiedNumberDataWrapper
Submit verification code.
Constructor Details
#initialize(client:) ⇒ Actions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Actions.
35 36 37 |
# File 'lib/telnyx/resources/verified_numbers/actions.rb', line 35 def initialize(client:) @client = client end |
Instance Method Details
#submit_verification_code(phone_number, verification_code:, request_options: {}) ⇒ Telnyx::Models::VerifiedNumberDataWrapper
Submit verification code
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/telnyx/resources/verified_numbers/actions.rb', line 21 def submit_verification_code(phone_number, params) parsed, = Telnyx::VerifiedNumbers::ActionSubmitVerificationCodeParams.dump_request(params) @client.request( method: :post, path: ["verified_numbers/%1$s/actions/verify", phone_number], body: parsed, model: Telnyx::VerifiedNumberDataWrapper, options: ) end |