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 |
ReportResponse get_report(analysis_ref_uid, accept_language=accept_language)
HTTP GET report (demo)
Get a pdf report (base64 encoded) (demo)
import time
import idcheckio_python_client
from idcheckio_python_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
idcheckio_python_client.configuration.username = 'YOUR_USERNAME'
idcheckio_python_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = idcheckio_python_client.AnalysisApi()
analysis_ref_uid = 'analysis_ref_uid_example' # str | Report analysisRefUid
accept_language = 'accept_language_example' # str | Accept language header (optional)
try:
# HTTP GET report (demo)
api_response = api_instance.get_report(analysis_ref_uid, accept_language=accept_language)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnalysisApi->get_report: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
analysis_ref_uid | str | Report analysisRefUid | |
accept_language | str | Accept language header | [optional] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultResponse get_result(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
import time
import idcheckio_python_client
from idcheckio_python_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
idcheckio_python_client.configuration.username = 'YOUR_USERNAME'
idcheckio_python_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = idcheckio_python_client.AnalysisApi()
analysis_ref_uid = 'analysis_ref_uid_example' # str | Result analysisRefUid
accept_language = 'accept_language_example' # str | Accept language header (optional)
recto_image_cropped = false # bool | True to obtain recto image cropped if applicable (optional) (default to false)
face_image_cropped = false # bool | True to obtain face image cropped if applicable (optional) (default to false)
signature_image_cropped = false # bool | True to obtain signature image cropped if applicable (optional) (default to false)
try:
# HTTP GET result
api_response = api_instance.get_result(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)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnalysisApi->get_result: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
analysis_ref_uid | str | Result analysisRefUid | |
accept_language | str | Accept language header | [optional] |
recto_image_cropped | bool | True to obtain recto image cropped if applicable | [optional] [default to false] |
face_image_cropped | bool | True to obtain face image cropped if applicable | [optional] [default to false] |
signature_image_cropped | bool | True to obtain signature image cropped if applicable | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskResponse get_task(analysis_ref_uid, accept_language=accept_language, wait=wait)
HTTP GET task
Get task status
import time
import idcheckio_python_client
from idcheckio_python_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
idcheckio_python_client.configuration.username = 'YOUR_USERNAME'
idcheckio_python_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = idcheckio_python_client.AnalysisApi()
analysis_ref_uid = 'analysis_ref_uid_example' # str | Task analysisRefUid
accept_language = 'accept_language_example' # str | Accept language header (optional)
wait = 789 # int | specify a maximum wait time in milliseconds (optional)
try:
# HTTP GET task
api_response = api_instance.get_task(analysis_ref_uid, accept_language=accept_language, wait=wait)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnalysisApi->get_task: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
analysis_ref_uid | str | Task analysisRefUid | |
accept_language | str | Accept language header | [optional] |
wait | int | specify a maximum wait time in milliseconds | [optional] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultResponse post_image(body, async_mode=async_mode, accept_language=accept_language)
HTTP POST task image
POST an image check task
import time
import idcheckio_python_client
from idcheckio_python_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
idcheckio_python_client.configuration.username = 'YOUR_USERNAME'
idcheckio_python_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = idcheckio_python_client.AnalysisApi()
body = idcheckio_python_client.ImageRequest() # ImageRequest | Image request
async_mode = true # bool | true to activate asynchrone mode (optional)
accept_language = 'accept_language_example' # str | Accept language header (optional)
try:
# HTTP POST task image
api_response = api_instance.post_image(body, async_mode=async_mode, accept_language=accept_language)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnalysisApi->post_image: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | ImageRequest | Image request | |
async_mode | bool | true to activate asynchrone mode | [optional] |
accept_language | str | Accept language header | [optional] |
- Content-Type: application/json
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultResponse post_mrz(body, async_mode=async_mode, accept_language=accept_language)
HTTP POST task mrz
POST a mrz check task
import time
import idcheckio_python_client
from idcheckio_python_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
idcheckio_python_client.configuration.username = 'YOUR_USERNAME'
idcheckio_python_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = idcheckio_python_client.AnalysisApi()
body = idcheckio_python_client.MrzRequest() # MrzRequest | Mrz request
async_mode = true # bool | true to activate asynchrone mode (optional)
accept_language = 'accept_language_example' # str | Accept language header (optional)
try:
# HTTP POST task mrz
api_response = api_instance.post_mrz(body, async_mode=async_mode, accept_language=accept_language)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnalysisApi->post_mrz: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | MrzRequest | Mrz request | |
async_mode | bool | true to activate asynchrone mode | [optional] |
accept_language | str | Accept language header | [optional] |
- Content-Type: application/json
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]