Changes for page 07 HTTP API
Last modified by Devin Chen on 2025/04/10 16:16
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -7 HTTP API 1 +07 HTTP API - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Hunter1 +XWiki.Mora - Content
-
... ... @@ -1,4 +1,4 @@ 1 -= ** 1General** =1 += **General** = 2 2 3 3 This documents introduces WECON V-BOX HTTP API. And this document also shows some examples. All example is tested from postman application. 4 4 ... ... @@ -43,9 +43,12 @@ 43 43 44 44 screctkey=f1cd9351930d4e589922edbcf3b09a7c 45 45 46 +(% class="box infomessage" %) 47 +((( 46 46 **✎Note:** If it is for Virtual Deployment, the comid and comkey would not be the same with values above. Try to get the actual value from HTTP access (V-NET~-~-Services~-~-HTTP access) 49 +))) 47 47 48 -== ** 1.1Interface Parameter Description** ==51 +== **Interface Parameter Description** == 49 49 50 50 **Global parameters** 51 51 ... ... @@ -69,7 +69,7 @@ 69 69 (% style="text-align:center" %) 70 70 [[image:1.png||height="141" width="500" class="img-thumbnail"]] 71 71 72 -== ** 1.2Example key and value** ==75 +== **Example key and value** == 73 73 74 74 1).**comid**=2 75 75 ... ... @@ -80,10 +80,10 @@ 80 80 4).**ts**=1573897380 81 81 82 82 ((( 83 -= ** 2Basic API** =86 += **Basic API** = 84 84 ))) 85 85 86 -== ** 2.1{{id name="_Toc24963726"/}}Login operation** ==89 +== **{{id name="_Toc24963726"/}}Login operation** == 87 87 88 88 ((( 89 89 **2.1.1 Parameters** ... ... @@ -100,7 +100,7 @@ 100 100 |utype|(% style="width:535px" %)User Type: 1-Manage Account, 2-Viewer Account 101 101 |sid|(% style="width:535px" %)User session ID (Only available for 12 hours) 102 102 103 -** 2.1.2Operating procedures**106 +**Operating procedures** 104 104 105 105 **Setp1: ** Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/login>>url:http://api.v-box.net/box-data/api/we-data/login]] 106 106 ... ... @@ -140,7 +140,7 @@ 140 140 [[image:V-BOX HTTP manual_html_cbfc9bbb7d0d4f84.png||height="230" width="700" class="img-thumbnail"]] 141 141 142 142 ((( 143 -** 2.1.3Result**146 +**Result** 144 144 ))) 145 145 146 146 { ... ... @@ -167,17 +167,17 @@ 167 167 [[image:V-BOX HTTP manual_html_b00e7e6a00828e27.png||height="291" width="500" class="img-thumbnail"]] 168 168 169 169 ((( 170 -= ** 3Service data APIs** =173 += **Service data APIs** = 171 171 ))) 172 172 173 -== ** 3.1V-Box list** ==176 +== **V-Box list** == 174 174 175 -** 3.1.1{{id name="_Toc24963732"/}}Parameters**178 +**{{id name="_Toc24963732"/}}Parameters** 176 176 177 177 (% style="text-align:center" %) 178 178 [[image:X.png||height="412" width="700" class="img-thumbnail"]] 179 179 180 -** 3.1.2{{id name="_Toc24963733"/}}Operating procedures**183 +**~ {{id name="_Toc24963733"/}}Operating procedures** 181 181 182 182 **Step1:** Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/boxs>>url:http://api.v-box.net/box-data/api/we-data/boxs]] 183 183 ... ... @@ -201,7 +201,7 @@ 201 201 (% style="text-align:center" %) 202 202 [[image:V-BOX HTTP manual_html_999832f3a31ac851.png||height="232" width="700" class="img-thumbnail"]] 203 203 204 -** 3.1.3Result**207 +**Result** 205 205 206 206 { 207 207 ... ... @@ -330,9 +330,9 @@ 330 330 (% style="text-align:center" %) 331 331 [[image:V-BOX HTTP manual_html_5999b14ed63e8065.png||height="348" width="600" class="img-thumbnail"]] 332 332 333 -== ** 3.2Real-time group list** ==336 +== **Real-time group list** == 334 334 335 -** 3.2.1{{id name="_Toc24963736"/}}338 +**{{id name="_Toc24963736"/}} Parameters** 336 336 337 337 (% class="table-bordered" %) 338 338 |**acturl**|(% colspan="3" %)we-data/realgroups ... ... @@ -344,7 +344,7 @@ 344 344 |groupId|Group ID 345 345 |groupName|Group name 346 346 347 -** 3.2.2Operating procedures**350 +**Operating procedures** 348 348 349 349 **Step1: **Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/realgroups>>url:http://api.v-box.net/box-data/api/we-data/realgroups]] 350 350 ... ... @@ -371,7 +371,7 @@ 371 371 (% style="text-align:center" %) 372 372 [[image:V-BOX HTTP manual_html_cc06cac462c1b77a.png||height="172" width="800" class="img-thumbnail"]] 373 373 374 -** 3.2.3Result**377 +**Result** 375 375 376 376 { 377 377 ... ... @@ -417,9 +417,9 @@ 417 417 418 418 [[image:V-BOX HTTP manual_html_2445c358293d621.png||height="531" width="532"]] 419 419 420 -== ** 3.3Real-time tags configuration list** ==423 +== **Real-time tags configuration list** == 421 421 422 -** 3.3.1Parameters**425 +**Parameters** 423 423 424 424 (% class="table-bordered" %) 425 425 |**acturl**|(% colspan="3" %)we-data/realcfgs ... ... @@ -461,7 +461,7 @@ 461 461 |totalRecord|(% colspan="2" %)Total record number 462 462 |currentPage|(% colspan="2" %)Current page number 463 463 464 -** 3.3.2Operating procedures**467 +**Operating procedures** 465 465 466 466 **Step1: **Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/realcfgs>>url:http://api.v-box.net/box-data/api/we-data/realcfgs]] 467 467 ... ... @@ -494,7 +494,7 @@ 494 494 (% style="text-align:center" %) 495 495 [[image:V-BOX HTTP manual_html_d284dfdd7b4844ee.png||height="288" width="800" class="img-thumbnail"]] 496 496 497 -** 3.3.3Result**500 +**Result** 498 498 499 499 { 500 500 ... ... @@ -577,9 +577,9 @@ 577 577 (% style="text-align:center" %) 578 578 [[image:V-BOX HTTP manual_html_e7271097b71941cc.png||height="644" width="800" class="img-thumbnail"]] 579 579 580 -== (% id="cke_bm_1151S" style="display:none" %)**{{id name="_Toc24963743"/}}**(%%)**3.4 Tags data list** ==583 +== **Tags data list** == 581 581 582 -** 3.4.1{{id name="_Toc24963744"/}}Parameters**585 +**~ {{id name="_Toc24963744"/}}Parameters** 583 583 584 584 (% class="table-bordered" %) 585 585 |**acturl**|(% colspan="3" %)we-data/realdata ... ... @@ -601,7 +601,7 @@ 601 601 |totalRecord|(% colspan="2" %)Total record 602 602 |currentPage|(% colspan="2" %)current page 603 603 604 -** 3.4.2{{id name="_Toc24963745"/}}Operating procedures**607 +**~ {{id name="_Toc24963745"/}}Operating procedures** 605 605 606 606 **Step1: **Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/realdata>>url:http://api.v-box.net/box-data/api/we-data/realdata]] 607 607 ... ... @@ -629,7 +629,7 @@ 629 629 630 630 {"boxId":"973","groupId":"7325","pageSize":"5","pageIndex":"2","sid":"2d7bfd344aa64d8ebc9beea0e4dad8ad","comid":"2","compvtkey":"589625dce895454dbff9782c299db156","ts":"1573897380","sign":"0769228e66c945eed5431c41a96949f2"} 631 631 632 -** 3.4.3{{id name="_Toc24963746"/}}Result**635 +**~ {{id name="_Toc24963746"/}}Result** 633 633 634 634 { 635 635 ... ... @@ -694,10 +694,10 @@ 694 694 (% style="text-align:center" %) 695 695 [[image:V-BOX HTTP manual_html_705682e81eae5ea7.png||height="651" width="800" class="img-thumbnail"]] 696 696 697 -== ** 3.5Modify tag data** ==700 +== **Modify tag data** == 698 698 699 699 ((( 700 -** 3.5.1Parameters**703 +**Parameters** 701 701 ))) 702 702 703 703 (% class="table-bordered" %) ... ... @@ -708,7 +708,7 @@ 708 708 |value|value 709 709 |**Return value**|(% colspan="2" %)None 710 710 711 -** 3.5.2Operating procedures**714 +**Operating procedures** 712 712 713 713 **Step1:** Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/updrealdata>>url:http://api.v-box.net/box-data/api/we-data/updrealdata]] 714 714 ... ... @@ -737,7 +737,7 @@ 737 737 (% style="text-align:center" %) 738 738 [[image:V-BOX HTTP manual_html_59d54a5d886ef614.png||height="244" width="700" class="img-thumbnail"]] 739 739 740 -** 3.5.3Result**743 +**Result** 741 741 742 742 { 743 743 ... ... @@ -754,9 +754,9 @@ 754 754 (% style="text-align:center" %) 755 755 [[image:V-BOX HTTP manual_html_590c8dab9e80fd0f.png||height="425" width="700" class="img-thumbnail"]] 756 756 757 -== ** 3.6{{id name="_Toc24963751"/}}Historical tags name list** ==760 +== ** {{id name="_Toc24963751"/}}Historical tags name list** == 758 758 759 -** 3.6.1Parameters**762 +**Parameters** 760 760 761 761 (% class="table-bordered" %) 762 762 |**acturl**|(% colspan="3" %)we-data/monitors ... ... @@ -768,7 +768,7 @@ 768 768 |monitorId|tag ID 769 769 |monitorName|tag name 770 770 771 -** 3.6.2Operating procedures**774 +**Operating procedures** 772 772 773 773 **Step1: **Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/monitors>>url:http://api.v-box.net/box-data/api/we-data/monitors]] 774 774 ... ... @@ -795,7 +795,7 @@ 795 795 (% style="text-align:center" %) 796 796 [[image:V-BOX HTTP manual_html_dba52ac718eeb66e.png||height="228" width="700" class="img-thumbnail"]] 797 797 798 -** 3.6.3Result**801 +**Result** 799 799 800 800 { 801 801 ... ... @@ -838,9 +838,9 @@ 838 838 (% style="text-align:center" %) 839 839 [[image:V-BOX HTTP manual_html_2a739377a9fb10b2.png||height="400" width="700" class="img-thumbnail"]] 840 840 841 -== (% id="cke_bm_1218S" style="display:none" %)****(%%)**3.7{{id name="_Toc24963755"/}}Historical tag data list** ==844 +== ** {{id name="_Toc24963755"/}}Historical tag data list** == 842 842 843 -** 3.7.1{{id name="_Toc24963756"/}}Parameters**846 +**~ {{id name="_Toc24963756"/}}Parameters** 844 844 845 845 (% class="table-bordered" %) 846 846 |**acturl**|(% colspan="3" %)we-data/historydata ... ... @@ -860,7 +860,7 @@ 860 860 |totalRecord|(% colspan="2" %)Total records 861 861 |currentPage|(% colspan="2" %)Current page 862 862 863 - **3.7.2Operating procedures**866 +**Operating procedures** 864 864 865 865 **Step:** Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/historydata>>url:http://api.v-box.net/box-data/api/we-data/historydata]] 866 866 ... ... @@ -895,7 +895,7 @@ 895 895 (% style="text-align:center" %) 896 896 [[image:V-BOX HTTP manual_html_fac48b1179b555ee.png||height="291" width="700" class="img-thumbnail"]] 897 897 898 -** 3.7.3Result**901 +**Result** 899 899 900 900 { 901 901 ... ... @@ -958,9 +958,9 @@ 958 958 (% style="text-align:center" %) 959 959 [[image:V-BOX HTTP manual_html_f3b62eb69687a214.png||height="476" width="700" class="img-thumbnail"]] 960 960 961 -== ** 3.8Alarm tags data list** ==964 +== **Alarm tags data list** == 962 962 963 -** 3.8.1{{id name="_Toc24963760"/}}Parameters**966 +**{{id name="_Toc24963760"/}}Parameters** 964 964 965 965 (% class="table-bordered" %) 966 966 |**acturl**|(% colspan="3" %)we-data/alarmdata ... ... @@ -995,7 +995,7 @@ 995 995 |totalRecord|(% colspan="2" %)Total records 996 996 |currentPage|(% colspan="2" %)Current page 997 997 998 -** 3.8.2{{id name="_Toc24963761"/}}Operating procedures**1001 +**~ {{id name="_Toc24963761"/}}Operating procedures** 999 999 1000 1000 **Step1:** Set http: [[http:~~/~~/api.v-box.net/box-data/api/we-data/alarmdata>>url:http://api.v-box.net/box-data/api/we-data/alarmdata]] 1001 1001 ... ... @@ -1032,7 +1032,7 @@ 1032 1032 (% style="text-align:center" %) 1033 1033 [[image:V-BOX HTTP manual_html_cd9ce84648b86cb9.png||height="269" width="700" class="img-thumbnail"]] 1034 1034 1035 -** 3.8.3Result**1038 +**Result** 1036 1036 1037 1037 { 1038 1038 ... ... @@ -1111,9 +1111,9 @@ 1111 1111 (% style="text-align:center" %) 1112 1112 [[image:V-BOX HTTP manual_html_d4a3e0114c402c27.png||height="475" width="700" class="img-thumbnail"]] 1113 1113 1114 -== ** 3.9Get device state** ==1117 +== **Get device state** == 1115 1115 1116 -** 3.9.1{{id name="_Toc24963760"/}}Parameters**1119 +**~ {{id name="_Toc24963760"/}}Parameters** 1117 1117 1118 1118 (% class="table-bordered" %) 1119 1119 |**acturl**|(% colspan="3" %)we-data/getDeviceState ... ... @@ -1123,7 +1123,7 @@ 1123 1123 |(% rowspan="2" %)**Return value**|Field name|(% colspan="2" %)Description 1124 1124 |state|(% colspan="2" %)vbox state: 1-online, 0-offline 1125 1125 1126 -== ** 3.10Send switch to device** ==1129 +== **Send switch to device** == 1127 1127 1128 1128 **3.10.1 {{id name="_Toc24963760"/}}Parameters** 1129 1129 ... ... @@ -1134,9 +1134,9 @@ 1134 1134 |(% style="width:450px" %)boxId|(% colspan="2" %)boxId(required) 1135 1135 |(% rowspan="1" style="width:102px" %)**Return value**|(% style="width:450px" %)Field name|(% colspan="2" %)Description 1136 1136 1137 -= ** 4Appendix** =1140 += **Appendix** = 1138 1138 1139 -== (% style="color:inherit; font-family:inherit; font-size:26px" %)** 4.1Data type**(%%) ==1142 +== (% style="color:inherit; font-family:inherit; font-size:26px" %)**Data type**(%%) == 1140 1140 1141 1141 100: 16-bit binary 1142 1142