Suggestion: Before you continue with TSDB SDK, we recommend you read Terms and HTTP API Reference first to learn the basics of TSDB and the usage of API.
Method 1: Get Maven dependency
To use Maven to build projects, add hitsdb-client dependency in the pom.xml file’s <dependencies>
tag. Example code:
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>hitsdb-client</artifactId>
<version>{version}</version>
</dependency>
Note: “{version}” is the version number (the latest SDK version is recommended). See SDK Version History for the latest SDK version number and relevant information.
Method 2: download the SDK package
If you do not use Maven or cannot access the Maven inventory, follow these steps to directly download, add a dependency package to, and use the SDK.
- Download the JAR package from the following link:
- Download the JAR package (the latest version is recommended):
- To download the latest JAR package, please see SDK Version History.
- Place these JAR packages under the project, and use the TSDB-Client SDK for development.
Suggestion: Before using TSDB SDK, we recommend that you review Terms and [HTTP API Reference] for basic concepts of TSDB and how to use the API.