Example of Python Code
This example demonstrates how to use the Python requests library to integrate the Koncile API. The script illustrates the following steps:
File Upload: The file is sent to the API via a dedicated endpoint, along with the necessary parameters such as the file type and the use case ID.
Retrieval of the Task ID: Once the file is processed, the task ID generated by the API is used to track its status.
Task Processing Monitoring: A polling function periodically checks whether the task is completed before extracting the returned information.
This script can serve as a starting point for integrating Koncile into your automated systems. Be sure to replace placeholder values (e.g., your-api-key
, use-case-id
, file-type-id
, path-to-file
) with your own data.
Last updated