Skip to content

Commit 22e1d95

Browse files
add updates
1 parent 87dc314 commit 22e1d95

3 files changed

Lines changed: 130 additions & 1 deletion

File tree

src/Iotlink/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 更新历史 #
22

3-
API版本:1.0.5
3+
API版本:1.0.8
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ---------- | ------ | -------- | ------------------------------------------------------------ |
7+
| 2023-03-22 | 1.0.8 | 接口完善 | 增加实名制清除接口、增加在线状态和会话信息查询接口、增加批量强制激活接口、增加机卡分离查询接口 |
78
| 2022-11-14 | 1.0.7 | 接口完善 | 增加自主限速接口、增加流量查询(时间段)查询接口、增加移动实名登记接口、增加NB卡有效期查询接口、增加日历史流量查询接口 |
89
| 2022-06-08 | 1.0.6 | 接口完善 | 新增加实名认证状态查询接口及卡基本信息查询接口 |
910
| 2021-12-14 | 1.0.5 | 接口完善 | 新增通过IMSI参数进行流量查询、开关机查询、上网状态查询、生命周期查询接口 |

src/Iotlink/IotlinkClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
/**
2121
* Client used to interact with iotlink.
2222
*
23+
* @method \Jdcloud\Result ordinaryRealNameClear(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise ordinaryRealNameClearAsync(array $args = [])
25+
* @method \Jdcloud\Result cardBindStatus(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise cardBindStatusAsync(array $args = [])
27+
* @method \Jdcloud\Result getOnlineStatus(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise getOnlineStatusAsync(array $args = [])
2329
* @method \Jdcloud\Result queryValidPeriodForNB(array $args = [])
2430
* @method \GuzzleHttp\Promise\Promise queryValidPeriodForNBAsync(array $args = [])
2531
* @method \Jdcloud\Result queryDayHistoryTraffic(array $args = [])

src/data/iotlink/v1/api-2.json.php

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@
1111
// 'serviceId' => 'iotlink',
1212
],
1313
'operations' => [
14+
'OrdinaryRealNameClear' => [
15+
'name' => 'OrdinaryRealNameClear',
16+
'http' => [
17+
'method' => 'POST',
18+
'requestUri' => '/v1/regions/{regionId}/ordinaryRealNameClear',
19+
],
20+
'input' => [ 'shape' => 'OrdinaryRealNameClearRequestShape', ],
21+
'output' => [ 'shape' => 'OrdinaryRealNameClearResponseShape', ],
22+
],
23+
'CardBindStatus' => [
24+
'name' => 'CardBindStatus',
25+
'http' => [
26+
'method' => 'GET',
27+
'requestUri' => '/v1/regions/{regionId}/cardBindStatus',
28+
],
29+
'input' => [ 'shape' => 'CardBindStatusRequestShape', ],
30+
'output' => [ 'shape' => 'CardBindStatusResponseShape', ],
31+
],
32+
'GetOnlineStatus' => [
33+
'name' => 'GetOnlineStatus',
34+
'http' => [
35+
'method' => 'GET',
36+
'requestUri' => '/v1/regions/{regionId}/getOnlineStatus',
37+
],
38+
'input' => [ 'shape' => 'GetOnlineStatusRequestShape', ],
39+
'output' => [ 'shape' => 'GetOnlineStatusResponseShape', ],
40+
],
1441
'QueryValidPeriodForNB' => [
1542
'name' => 'QueryValidPeriodForNB',
1643
'http' => [
@@ -219,6 +246,15 @@
219246
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
220247
],
221248
],
249+
'RequestServActiveResp' => [
250+
'type' => 'structure',
251+
'members' => [
252+
'iccid' => [ 'type' => 'string', 'locationName' => 'iccid', ],
253+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
254+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
255+
'data' => [ 'type' => 'string', 'locationName' => 'data', ],
256+
],
257+
],
222258
'RealNameQueryIotResp' => [
223259
'type' => 'structure',
224260
'members' => [
@@ -263,6 +299,15 @@
263299
'onlinestatus' => [ 'type' => 'string', 'locationName' => 'onlinestatus', ],
264300
],
265301
],
302+
'CardBindStatusResp' => [
303+
'type' => 'structure',
304+
'members' => [
305+
'result' => [ 'type' => 'string', 'locationName' => 'result', ],
306+
'errorCode' => [ 'type' => 'string', 'locationName' => 'errorCode', ],
307+
'errorDes' => [ 'type' => 'string', 'locationName' => 'errorDes', ],
308+
'sepTime' => [ 'type' => 'string', 'locationName' => 'sepTime', ],
309+
],
310+
],
266311
'CardInfoResp' => [
267312
'type' => 'structure',
268313
'members' => [
@@ -279,6 +324,17 @@
279324
'url' => [ 'type' => 'string', 'locationName' => 'url', ],
280325
],
281326
],
327+
'GetOnlineStatusResp' => [
328+
'type' => 'structure',
329+
'members' => [
330+
'result' => [ 'type' => 'string', 'locationName' => 'result', ],
331+
'msisdn' => [ 'type' => 'string', 'locationName' => 'msisdn', ],
332+
'eventTimeStamp' => [ 'type' => 'string', 'locationName' => 'eventTimeStamp', ],
333+
'provname' => [ 'type' => 'string', 'locationName' => 'provname', ],
334+
'stopTime' => [ 'type' => 'string', 'locationName' => 'stopTime', ],
335+
'startTime' => [ 'type' => 'string', 'locationName' => 'startTime', ],
336+
],
337+
],
282338
'QueryDayHistoryTrafficResultShape' => [
283339
'type' => 'structure',
284340
'members' => [
@@ -383,6 +439,13 @@
383439
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
384440
],
385441
],
442+
'GetOnlineStatusResponseShape' => [
443+
'type' => 'structure',
444+
'members' => [
445+
'result' => [ 'shape' => 'GetOnlineStatusResultShape', ],
446+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
447+
],
448+
],
386449
'CardInfoRequestShape' => [
387450
'type' => 'structure',
388451
'members' => [
@@ -398,6 +461,14 @@
398461
'result' => [ 'shape' => 'OnOffStatusResp', ],
399462
],
400463
],
464+
'GetOnlineStatusResultShape' => [
465+
'type' => 'structure',
466+
'members' => [
467+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
468+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
469+
'result' => [ 'shape' => 'GetOnlineStatusResp', ],
470+
],
471+
],
401472
'SearchRequestShape' => [
402473
'type' => 'structure',
403474
'members' => [
@@ -406,6 +477,13 @@
406477
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
407478
],
408479
],
480+
'CardBindStatusResponseShape' => [
481+
'type' => 'structure',
482+
'members' => [
483+
'result' => [ 'shape' => 'CardBindStatusResultShape', ],
484+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
485+
],
486+
],
409487
'QueryTrafficByDateResultShape' => [
410488
'type' => 'structure',
411489
'members' => [
@@ -531,6 +609,20 @@
531609
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
532610
],
533611
],
612+
'OrdinaryRealNameClearRequestShape' => [
613+
'type' => 'structure',
614+
'members' => [
615+
'requestParam' => [ 'type' => 'string', 'locationName' => 'requestParam', ],
616+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
617+
],
618+
],
619+
'CardBindStatusRequestShape' => [
620+
'type' => 'structure',
621+
'members' => [
622+
'iccid' => [ 'type' => 'string', 'locationName' => 'iccid', ],
623+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
624+
],
625+
],
534626
'SimRealNameRegRequestShape' => [
535627
'type' => 'structure',
536628
'members' => [
@@ -576,6 +668,14 @@
576668
'result' => [ 'shape' => 'SimRealNameRegResp', ],
577669
],
578670
],
671+
'CardBindStatusResultShape' => [
672+
'type' => 'structure',
673+
'members' => [
674+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
675+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
676+
'result' => [ 'shape' => 'CardBindStatusResp', ],
677+
],
678+
],
579679
'RealNameQueryIotResponseShape' => [
580680
'type' => 'structure',
581681
'members' => [
@@ -620,6 +720,13 @@
620720
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
621721
],
622722
],
723+
'OrdinaryRealNameClearResponseShape' => [
724+
'type' => 'structure',
725+
'members' => [
726+
'result' => [ 'shape' => 'OrdinaryRealNameClearResultShape', ],
727+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
728+
],
729+
],
623730
'OpenIotCardResponseShape' => [
624731
'type' => 'structure',
625732
'members' => [
@@ -714,6 +821,13 @@
714821
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
715822
],
716823
],
824+
'GetOnlineStatusRequestShape' => [
825+
'type' => 'structure',
826+
'members' => [
827+
'iccid' => [ 'type' => 'string', 'locationName' => 'iccid', ],
828+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
829+
],
830+
],
717831
'GprsRealtimeInfoRequestShape' => [
718832
'type' => 'structure',
719833
'members' => [
@@ -743,5 +857,13 @@
743857
'result' => [ 'shape' => 'GprsStatusResp', ],
744858
],
745859
],
860+
'OrdinaryRealNameClearResultShape' => [
861+
'type' => 'structure',
862+
'members' => [
863+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
864+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
865+
'result' => [ 'type' => 'boolean', 'locationName' => 'result', ],
866+
],
867+
],
746868
],
747869
];

0 commit comments

Comments
 (0)