IdcheckioPerl::Client::AnalysisApi

Load the API package

use IdcheckioPerl::Client::Object::AnalysisApi;

All URIs are relative to https://localhost/rest

Method | HTTP request | Description ------------- | ------------- | ------------- get_report | GET /v0/pdfreport/{analysisRefUid} | HTTP GET report (demo) get_result | GET /v0/result/{analysisRefUid} | HTTP GET result get_task | GET /v0/task/{analysisRefUid} | HTTP GET task post_image | POST /v0/task/image | HTTP POST task image post_mrz | POST /v0/task/mrz | HTTP POST task mrz

get_report

ReportResponse get_report(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language)

HTTP GET report (demo)

Get a pdf report (base64 encoded) (demo)

Example

use Data::Dumper;

# Configure HTTP basic authorization: basic
$IdcheckioPerl::Client::Configuration::username = 'YOUR_USERNAME';
$IdcheckioPerl::Client::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = IdcheckioPerl::Client::AnalysisApi->new();
my $analysis_ref_uid = 'analysis_ref_uid_example'; # string | Report analysisRefUid
my $accept_language = 'accept_language_example'; # string | Accept language header

eval { 
    my $result = $api_instance->get_report(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->get_report: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- analysis_ref_uid | string| Report analysisRefUid | accept_language | string| Accept language header | [optional]

Return type

ReportResponse

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_result

ResultResponse get_result(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language, recto_image_cropped => $recto_image_cropped, face_image_cropped => $face_image_cropped, signature_image_cropped => $signature_image_cropped)

HTTP GET result

Get result controls

Example

use Data::Dumper;

# Configure HTTP basic authorization: basic
$IdcheckioPerl::Client::Configuration::username = 'YOUR_USERNAME';
$IdcheckioPerl::Client::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = IdcheckioPerl::Client::AnalysisApi->new();
my $analysis_ref_uid = 'analysis_ref_uid_example'; # string | Result analysisRefUid
my $accept_language = 'accept_language_example'; # string | Accept language header
my $recto_image_cropped = 1; # boolean | True to obtain recto image cropped if applicable
my $face_image_cropped = 1; # boolean | True to obtain face image cropped if applicable
my $signature_image_cropped = 1; # boolean | True to obtain signature image cropped if applicable

eval { 
    my $result = $api_instance->get_result(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language, recto_image_cropped => $recto_image_cropped, face_image_cropped => $face_image_cropped, signature_image_cropped => $signature_image_cropped);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->get_result: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- analysis_ref_uid | string| Result analysisRefUid | accept_language | string| Accept language header | [optional] recto_image_cropped | boolean| True to obtain recto image cropped if applicable | [optional] [default to false] face_image_cropped | boolean| True to obtain face image cropped if applicable | [optional] [default to false] signature_image_cropped | boolean| True to obtain signature image cropped if applicable | [optional] [default to false]

Return type

ResultResponse

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_task

TaskResponse get_task(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language, wait => $wait)

HTTP GET task

Get task status

Example

use Data::Dumper;

# Configure HTTP basic authorization: basic
$IdcheckioPerl::Client::Configuration::username = 'YOUR_USERNAME';
$IdcheckioPerl::Client::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = IdcheckioPerl::Client::AnalysisApi->new();
my $analysis_ref_uid = 'analysis_ref_uid_example'; # string | Task analysisRefUid
my $accept_language = 'accept_language_example'; # string | Accept language header
my $wait = 789; # int | specify a maximum wait time in milliseconds

eval { 
    my $result = $api_instance->get_task(analysis_ref_uid => $analysis_ref_uid, accept_language => $accept_language, wait => $wait);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->get_task: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- analysis_ref_uid | string| Task analysisRefUid | accept_language | string| Accept language header | [optional] wait | int| specify a maximum wait time in milliseconds | [optional]

Return type

TaskResponse

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_image

ResultResponse post_image(body => $body, async_mode => $async_mode, accept_language => $accept_language)

HTTP POST task image

POST an image check task

Example

use Data::Dumper;

# Configure HTTP basic authorization: basic
$IdcheckioPerl::Client::Configuration::username = 'YOUR_USERNAME';
$IdcheckioPerl::Client::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = IdcheckioPerl::Client::AnalysisApi->new();
my $body = IdcheckioPerl::Client::Object::ImageRequest->new(); # ImageRequest | Image request
my $async_mode = 1; # boolean | true to activate asynchrone mode
my $accept_language = 'accept_language_example'; # string | Accept language header

eval { 
    my $result = $api_instance->post_image(body => $body, async_mode => $async_mode, accept_language => $accept_language);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->post_image: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | ImageRequest| Image request | async_mode | boolean| true to activate asynchrone mode | [optional] accept_language | string| Accept language header | [optional]

Return type

ResultResponse

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_mrz

ResultResponse post_mrz(body => $body, async_mode => $async_mode, accept_language => $accept_language)

HTTP POST task mrz

POST a mrz check task

Example

use Data::Dumper;

# Configure HTTP basic authorization: basic
$IdcheckioPerl::Client::Configuration::username = 'YOUR_USERNAME';
$IdcheckioPerl::Client::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = IdcheckioPerl::Client::AnalysisApi->new();
my $body = IdcheckioPerl::Client::Object::MrzRequest->new(); # MrzRequest | Mrz request
my $async_mode = 1; # boolean | true to activate asynchrone mode
my $accept_language = 'accept_language_example'; # string | Accept language header

eval { 
    my $result = $api_instance->post_mrz(body => $body, async_mode => $async_mode, accept_language => $accept_language);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnalysisApi->post_mrz: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- body | MrzRequest| Mrz request | async_mode | boolean| true to activate asynchrone mode | [optional] accept_language | string| Accept language header | [optional]

Return type

ResultResponse

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]