docs: update API endpoint examples safely
Use the documented API host and replace credential fragments with placeholders.
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
---
|
||||
title: 白名单转发
|
||||
description: 通过 api.iotlcm.example.com 访问中国移动物联网能力开放平台 V5 接口
|
||||
description: 通过 apiv3.5iot.cn 访问中国移动物联网能力开放平台 V5 接口
|
||||
outline: deep
|
||||
---
|
||||
|
||||
# 白名单转发
|
||||
|
||||
本目录说明如何通过 `api.iotlcm.example.com` 访问中国移动物联网能力开放平台 V5 接口。平台仅提供安全代理转发,不改变中国移动 V5 接口的请求方法、请求参数、响应结构和业务语义。
|
||||
本目录说明如何通过 `apiv3.5iot.cn` 访问中国移动物联网能力开放平台 V5 接口。平台仅提供安全代理转发,不改变中国移动 V5 接口的请求方法、请求参数、响应结构和业务语义。
|
||||
|
||||
## 服务地址
|
||||
|
||||
客户侧统一使用:
|
||||
|
||||
```text
|
||||
https://api.iotlcm.example.com
|
||||
https://apiv3.5iot.cn
|
||||
```
|
||||
|
||||
V5 接口的请求路径保持与中国移动官方接口一致,将官方域名替换为平台域名即可:
|
||||
|
||||
```text
|
||||
https://api.iotlcm.example.com/v5/{官方接口路径}
|
||||
https://apiv3.5iot.cn/v5/{官方接口路径}
|
||||
```
|
||||
|
||||
例如,官方接口路径为 `/v5/ec/query/sim-basic-info` 时,客户侧请求路径为:
|
||||
|
||||
```http
|
||||
POST https://api.iotlcm.example.com/v5/ec/query/sim-basic-info
|
||||
POST https://apiv3.5iot.cn/v5/ec/query/sim-basic-info
|
||||
```
|
||||
|
||||
平台会将该请求转发至:
|
||||
@@ -64,7 +64,7 @@ https://api.iot.10086.cn/v5/ec/query/sim-basic-info
|
||||
### 单卡基本信息查询
|
||||
|
||||
```http
|
||||
POST https://api.iotlcm.example.com/v5/ec/query/sim-basic-info
|
||||
POST https://apiv3.5iot.cn/v5/ec/query/sim-basic-info
|
||||
```
|
||||
|
||||
请求参数:
|
||||
@@ -82,7 +82,7 @@ POST https://api.iotlcm.example.com/v5/ec/query/sim-basic-info
|
||||
```json
|
||||
{
|
||||
"transid": "YOUR_TRANSID",
|
||||
"token": "YOUR_ACCESS_TOKENf3515b3bdaeca904dd2e904061b65e8153",
|
||||
"token": "YOUR_ACCESS_TOKEN",
|
||||
"iccid": "898608501624D0000009"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user