Changes for page 07 HTTP API

Last modified by Devin Chen on 2025/04/10 16:16

From version 4.1
edited by Hunter
on 2022/07/11 10:48
Change comment: There is no comment for this version
To version 2.1
edited by Leo Wei
on 2022/06/16 16:22
Change comment: Renamed from xwiki:V-BOX.V-Net.1\.User Manual.V-BOX HTTP manual.WebHome

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -05 HTTP API
1 +05 V-BOX HTTP manual
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Hunter
1 +XWiki.admin
Content
... ... @@ -92,7 +92,7 @@
92 92  |**Function**|(% colspan="2" %)Login with username, email, phone number
93 93  |(% rowspan="3" %)**Parameters**|Items|Description
94 94  |alias|Username, email, phone number
95 -|password|32bit password (MD5 encryption)
95 +|password|Password (Encrypted with md5)
96 96  |(% rowspan="3" %)**Return value**|Items|Description
97 97  |utype|User Type: 1-Manage Account, 2-Viewer Account
98 98  |sid|User session ID
... ... @@ -102,31 +102,29 @@
102 102  **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]]
103 103  
104 104  (% style="text-align:center" %)
105 -[[image:V-BOX HTTP manual_html_78fa6b0e5f03b2f2.png||height="63" width="800" class="img-thumbnail"]]
105 +[[image:V-BOX HTTP manual_html_78fa6b0e5f03b2f2.png||class="img-thumbnail" height="63" width="800"]]
106 106  
107 107  **Setp2: ** Set parameters on Params
108 108  
109 109   alias: weconuser
110 110  
111 - password: 599a3c736c04e196c58a29f43778f7ea(The md5 encryption result of Wecon159)
111 + password: 599a3c736c04e196c58a29f43778f7ea(Wecon159)
112 112  
113 113  (% style="text-align:center" %)
114 -[[image:V-BOX HTTP manual_html_563261d83c8f3530.png||height="250" width="700" class="img-thumbnail"]]
114 +[[image:V-BOX HTTP manual_html_563261d83c8f3530.png||class="img-thumbnail" height="250" width="700"]]
115 115  
116 116  **Step3:**  Get sign
117 117  
118 118  alias=weconuser&comid=2&compvtkey=589625dce895454dbff9782c299db156&password=599a3c736c04e196c58a29f43778f7ea&ts=1573897380&key=f1cd9351930d4e589922edbcf3b09a7c
119 119  
120 -Put the whole string above encrypted by MD5, so will get the value of "sign"
120 +MD5 value: 997513ff1320862f0cbb9ce19d0bd253
121 121  
122 -"sign":"997513ff1320862f0cbb9ce19d0bd253"
123 -
124 124  **Step4: ** Set common of header
125 125  
126 126  {"comid":"2","compvtkey":"589625dce895454dbff9782c299db156","ts":"1573897380","sign":"997513ff1320862f0cbb9ce19d0bd253"}
127 127  
128 128  (% style="text-align:center" %)
129 -[[image:V-BOX HTTP manual_html_cbfc9bbb7d0d4f84.png||height="230" width="700" class="img-thumbnail"]]
127 +[[image:V-BOX HTTP manual_html_cbfc9bbb7d0d4f84.png||class="img-thumbnail" height="230" width="700"]]
130 130  
131 131  (((
132 132  **2.1.3 Result**
... ... @@ -153,7 +153,7 @@
153 153  }
154 154  
155 155  (% style="text-align:center" %)
156 -[[image:V-BOX HTTP manual_html_b00e7e6a00828e27.png||height="291" width="500" class="img-thumbnail"]]
154 +[[image:V-BOX HTTP manual_html_b00e7e6a00828e27.png||class="img-thumbnail" height="291" width="500"]]
157 157  
158 158  (((
159 159  = **3 Service data APIs** =