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
6 7 8 9 10 11 |
# File 'lib/idnow/API/request_identifications.rb', line 6 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 |