SDK overview
This topic describes how to use SDKs for various programming languages.
Introduction
The Document AutoML SDK encapsulates the 2022-12-29 APIs. It uses an AccessKey to identify callers and provides features such as automatic request signing. This simplifies making API calls to different custom models. The Alibaba Cloud Developer Center provides SDKs for popular programming languages, including their source code repositories, installation commands, and version details. For more information, see Developer Center. For information about how to obtain an AccessKey, see Obtain an AccessKey.
The Document AutoML SDK supports various programming languages, including Java, Node.js, Python, C++, C#, Go, and PHP. Follow the SDK getting started guides to learn how to use the SDKs. To make API calls, refer to the SDK usage and debugging guides, which provide a demo project to help you quickly build Document AutoML applications.
|
Language |
Getting started |
Usage and debugging |
|
Java |
||
|
Node.js |
||
|
Python |
||
|
C# |
||
|
C++ |
||
|
Go |
||
|
PHP |
SDK getting started
This section provides key information about the Document AutoML SDK for Java (async). API version: 2022-12-29. Recommended SDK version: V2.0. Minimum requirement: Java 8. Maven repository: https://mvnrepository.com/artifact/com.aliyun/alibabacloud-documentautoml20221229/1.0.11. Source code repository: https://github.com/aliyun/alibabacloud-java-async-sdk/tree/master/documentautoml-20221229.
SDK usage and debugging
In the Alibaba Cloud OpenAPI Portal, select the Document AutoML product and find the PredictTemplateModel API. In the left-side pane, select a region, such as China (Beijing), from the endpoint drop-down list. On the Parameter Configuration tab, set the required parameters TaskId (task ID) and Content (the URL of an image or PDF file). Optionally, enable the BinaryToText switch or set the Body parameter to the base64-encoded image content. Then, click Initiate Call. The right-side pane displays the Documentation, API response, SDK example, and CLI example tabs. The SDK example tab provides ready-to-use, auto-generated code samples in languages such as TypeScript.