module Idnow::API::RequestIdentifications

Public Instance Methods

request_identification(transaction_number:, identification_data:) click to toggle source
# 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