Module: Idnow::API::RequestIdentifications
- Included in:
- Client
- Defined in:
- lib/idnow/API/request_identifications.rb
Instance Method Summary collapse
Instance Method Details
#request_identification(transaction_number:, identification_data:) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/idnow/API/request_identifications.rb', line 4 def request_identification(transaction_number:, identification_data:) path = full_path_for("identifications/#{transaction_number}/start") request = Idnow::PostJsonRequest.new(path, identification_data) response = execute(request, 'X-API-KEY' => @api_key) Idnow::IdentificationRequest.new(response.data, transaction_number, @target_host, @company_id) end |