Reference examples to quickly integrate Docflow functionality with APIs
This document provides examples on how to quickly integrate with the DocFlow workflow via APIs.
If you have not used DocFlow in the Web UI before, we recommend uploading a file on the Web page first to get a clear idea of how DocFlow works.
When using the Docflow API, you need to obtain an API Key first.
Please log in first and go to TextIn Console - Account & Developer Information to obtain your x-ti-app-id and x-ti-secret-code.
The retrieved result is in JSON format containing the processed document results. You can obtain the document parsing, classification, and extraction results by parsing the JSON.
The example below shows the extracted document fields in the output. For parsing of other information, refer to the relevant sections of this documentation.
Copy
# Continuing from the "Retrieve Results" example codefor file in resp_json["result"]["files"]: for item in file["data"]["items"]: print(f"{item["key"]}: {item["value"]}")