Commit 4c7f633415a6a8991ddf115c000be835302c12a3
1 parent
79401759
update
Showing
1 changed file
with
61 additions
and
0 deletions
00.公共组件/1.2accessToken.md
0 → 100644
| 1 | +<table> | ||
| 2 | + <tbody><tr> | ||
| 3 | + <td class="apitd1">接口名称</td> | ||
| 4 | + <td> 获取access_token</td> | ||
| 5 | + </tr> | ||
| 6 | + <tr> | ||
| 7 | + <td class="apitd1">地址</td> | ||
| 8 | + <td>http://api.cnlive.com/open/api2/token</td> | ||
| 9 | + </tr> | ||
| 10 | + <tr> | ||
| 11 | + <td class="apitd1">method</td> | ||
| 12 | + <td>post</td> | ||
| 13 | + </tr> | ||
| 14 | + <tr> | ||
| 15 | + <td class="apitd1">返回数据</td> | ||
| 16 | + <td> | ||
| 17 | + json | ||
| 18 | + </td> | ||
| 19 | + </tr> | ||
| 20 | + </tbody> | ||
| 21 | + | ||
| 22 | + </table> | ||
| 23 | + | ||
| 24 | +### 请求参数 | ||
| 25 | +<table> | ||
| 26 | + <thead> | ||
| 27 | + <tr> | ||
| 28 | + <th style="text-align: left">参数名</th> | ||
| 29 | + <th style="text-align: center">参数类型</th> | ||
| 30 | + <th style="text-align: center">必选</th> | ||
| 31 | + <th style="text-align: center">参数说明</th> | ||
| 32 | + </tr> | ||
| 33 | + </thead> | ||
| 34 | + <tbody> | ||
| 35 | + <tr> | ||
| 36 | + <td style="text-align: left">appId</td> | ||
| 37 | + <td style="text-align: center">string</td> | ||
| 38 | + <td style="text-align: center">true</td> | ||
| 39 | + <td style="text-align: center">应用ID</td> | ||
| 40 | + </tr> | ||
| 41 | + <tr> | ||
| 42 | + <td style="text-align: left">secret</td> | ||
| 43 | + <td style="text-align: center">string</td> | ||
| 44 | + <td style="text-align: center">true</td> | ||
| 45 | + <td style="text-align: center">获取access_token 凭证</td> | ||
| 46 | + </tr> | ||
| 47 | + </tbody> | ||
| 48 | +</table> | ||
| 49 | + | ||
| 50 | +### 返回数据 | ||
| 51 | +```json | ||
| 52 | +{ | ||
| 53 | + "errorCode": 0, | ||
| 54 | + "errorMessage": "OK", | ||
| 55 | + "data": { | ||
| 56 | + "access_token": "c2a89924-aa4c-4488-8c87-671b6c5e538c5c095ce9-72ef-4878-b3a6-6b4ce3bacba96a500103-c5bc-4565-bb00-c7d3b3c1954b", | ||
| 57 | + "expires_in": 7200 //单位(秒) 2小时 | ||
| 58 | + } | ||
| 59 | +} | ||
| 60 | + | ||
| 61 | +``` | ||
| 0 | \ No newline at end of file | 62 | \ No newline at end of file |