# third-iot-client
**Repository Path**: xsz_88/third-iot
## Basic Information
- **Project Name**: third-iot-client
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-03-18
- **Last Updated**: 2026-04-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 鼎芯物联网SDK使用文档
## 1. 项目简介
鼎芯物联网SDK是一个专门用于集成鼎芯(EIOTCLUB)物联网平台API的Java SDK,提供了完整的卡片管理、套餐管理、eSIM管理、短信发送等功能。
**核心特性:**
- 完整API覆盖:支持卡片、套餐、代理商、短信、eSIM、CloudESIM、CDR等全部鼎芯API
- 多种调用方式:动态代理、泛型代理、链式调用三种API调用方式
- Spring Boot集成:支持自动配置,开箱即用
- 类型安全:支持泛型,提供类型安全的API调用
- 签名认证:内置签名工具,自动处理API签名
## 2. 项目结构
```
third-iot-client/
├── seetong-framework/
│ ├── seetong-common-iot/ # 通用组件(DTO、异常、签名工具等)
│ └── spring-boot-dingxin-starter/ # 鼎芯Spring Boot Starter
└── seetong-service/
└── seetong-service-iot/ # 示例应用
```
## 3. 快速开始
### 3.1 安装
#### 3.1.1 Maven仓库配置
在项目的`pom.xml`中添加以下仓库配置:
```xml
topsee-releases
Topsee Releases
http://nexus.seetong.com/repository/maven-releases/
true
false
topsee-snapshots
Topsee Snapshots
http://nexus.seetong.com/repository/maven-snapshots/
false
true
```
#### 3.1.2 添加依赖
```xml
com.seetong.iot
spring-boot-dingxin-starter
1.0.0-SNAPSHOT
```
### 3.2 配置
在`application.yml`中添加配置:
```yaml
dingxin:
app-key: your_app_key
secret: your_secret
api-base-url: https://oapi.eiotclub.com/api/v3/
auth-url: https://sim.eiotclub.com/eshop/api/user/auth/login/whitelist
h5-base-url: https://sim.eiotclub.com
token-expire: 7200
timestamp-tolerance: 300
```
**配置说明:**
| 配置项 | 说明 | 默认值 |
|---------------------|--------------|-----------------------------------|
| app-key | 应用身份标识 | 必填 |
| secret | 应用密钥 | 必填 |
| api-base-url | API基础URL | https://oapi.eiotclub.com/api/v3/ |
| auth-url | 认证URL | - |
| h5-base-url | H5基础URL | - |
| token-expire | Token过期时间(秒) | 7200 |
| timestamp-tolerance | 时间戳容错时间(秒) | 300 |
### 3.3 使用示例
SDK提供三种API调用方式:
#### 方式一:动态代理(推荐)
```java
import com.seetong.dingxin.client.EiotClient;
import com.seetong.common.iot.dto.IotResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public class CardService {
@Autowired
private EiotClient eiotClient;
public void queryCardInfo(String iccid) {
IotResponse