Class: Telnyx::Resources::Verifications::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::Verifications::Actions
- Defined in:
- lib/telnyx/resources/verifications/actions.rb
Overview
Two factor authentication API
Instance Method Summary collapse
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
-
#verify(verification_id, code: nil, status: nil, request_options: {}) ⇒ Telnyx::Models::Verifications::ByPhoneNumber::VerifyVerificationCodeResponse
Some parameter documentations has been truncated, see Models::Verifications::ActionVerifyParams for more details.
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.
40 41 42 |
# File 'lib/telnyx/resources/verifications/actions.rb', line 40 def initialize(client:) @client = client end |
Instance Method Details
#verify(verification_id, code: nil, status: nil, request_options: {}) ⇒ Telnyx::Models::Verifications::ByPhoneNumber::VerifyVerificationCodeResponse
Some parameter documentations has been truncated, see Models::Verifications::ActionVerifyParams for more details.
Verify verification code by ID
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/telnyx/resources/verifications/actions.rb', line 26 def verify(verification_id, params = {}) parsed, = Telnyx::Verifications::ActionVerifyParams.dump_request(params) @client.request( method: :post, path: ["verifications/%1$s/actions/verify", verification_id], body: parsed, model: Telnyx::Verifications::ByPhoneNumber::VerifyVerificationCodeResponse, options: ) end |