说明 / 示例
第一步、将设备录入至相应平台,确保设备已经在平台上线
Step 1: Record the Device information to the platform, ensuring that the Device is already online on the platform
第二步、发送POST请求(可先用POSTMAN等调试工具进行测试,确保接口调用正常)
Step 2: Send a request (you can test it with debugging tools such as MAN to make sure the API calling is normal)
第三步、发送请求前先调用获取token接口获取对应的token,token24小时有效,收到token以后作为请求头调用接口 未带token、token已经失效,返回失败结果,结果代码为10001 其他错误 code = -1
**数据包格式**
Packet format
x-www-form-urlencoded
请求URL(Request URL)
域名 + 接口后缀(Domain name + interface suffix)
例域名为(Example: test server domain name:):https://dataopen.lvcchong.com/open/oem
查询充电订单(Search nearby charging order:):
https://dataopen.lvcchong.com/open/oem/queryChargeOrder
**请求方式(Request method)**
POST
**服务器地址(baseServerPath)**
正式环境:https://dataopen.lvcchong.com/open/oem
请求无数据示例:
示例1:
```
{
"data": {
"page": {
"total": 0,
"pages": 0,
"pageSize": 10,
"pageNum": 1
},
"list": []
},
"success": true
}
```
示例2:
```
{
"code": "-1",
"error": "查询无数据",
"success": false
}
```
请求失败示例:
```
{
"code": "-1",
"error": "用户名或密码错误",
"success": false
}
```