Changes for page 07 HTTP API

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

From version 2.4
edited by Leo Wei
on 2022/06/16 17:19
Change comment: Update document after refactoring.
To version 4.1
edited by Hunter
on 2022/07/11 10:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.admin
1 +XWiki.Hunter
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|Password (Encrypted with md5)
95 +|password|32bit password (MD5 encryption)
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,29 +102,31 @@
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||class="img-thumbnail" height="63" width="800"]]
105 +[[image:V-BOX HTTP manual_html_78fa6b0e5f03b2f2.png||height="63" width="800" class="img-thumbnail"]]
106 106  
107 107  **Setp2: ** Set parameters on Params
108 108  
109 109   alias: weconuser
110 110  
111 - password: 599a3c736c04e196c58a29f43778f7ea(Wecon159)
111 + password: 599a3c736c04e196c58a29f43778f7ea(The md5 encryption result of Wecon159)
112 112  
113 113  (% style="text-align:center" %)
114 -[[image:V-BOX HTTP manual_html_563261d83c8f3530.png||class="img-thumbnail" height="250" width="700"]]
114 +[[image:V-BOX HTTP manual_html_563261d83c8f3530.png||height="250" width="700" class="img-thumbnail"]]
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 -MD5 value: 997513ff1320862f0cbb9ce19d0bd253
120 +Put the whole string above encrypted by MD5, so will get the value of "sign"
121 121  
122 +"sign":"997513ff1320862f0cbb9ce19d0bd253"
123 +
122 122  **Step4: ** Set common of header
123 123  
124 124  {"comid":"2","compvtkey":"589625dce895454dbff9782c299db156","ts":"1573897380","sign":"997513ff1320862f0cbb9ce19d0bd253"}
125 125  
126 126  (% style="text-align:center" %)
127 -[[image:V-BOX HTTP manual_html_cbfc9bbb7d0d4f84.png||class="img-thumbnail" height="230" width="700"]]
129 +[[image:V-BOX HTTP manual_html_cbfc9bbb7d0d4f84.png||height="230" width="700" class="img-thumbnail"]]
128 128  
129 129  (((
130 130  **2.1.3 Result**
... ... @@ -151,7 +151,7 @@
151 151  }
152 152  
153 153  (% style="text-align:center" %)
154 -[[image:V-BOX HTTP manual_html_b00e7e6a00828e27.png||class="img-thumbnail" height="291" width="500"]]
156 +[[image:V-BOX HTTP manual_html_b00e7e6a00828e27.png||height="291" width="500" class="img-thumbnail"]]
155 155  
156 156  (((
157 157  = **3 Service data APIs** =