Commit 820c43ac152e61b2ec4c65812c9b2458c4269a59
1 parent
3740941e
u
Showing
1 changed file
with
56 additions
and
0 deletions
05.互动云/9.6点赞-加载点赞数.md
0 → 100644
| 1 | +/* | |
| 2 | + Title: 9.6 加载点赞数 | |
| 3 | +*/ | |
| 4 | +#### URL: https://api.cnlive.com/open/api2/commentServices/services/supportBySpId/readSupportCount | |
| 5 | +----- | |
| 6 | +#### 请求方式: POST | |
| 7 | +----- | |
| 8 | +#### 返回格式: JSON | |
| 9 | +----- | |
| 10 | +#### 请求参数说明: | |
| 11 | +<table class="table table-bordered table-striped table-condensed"> | |
| 12 | + <tr> | |
| 13 | + <th>参数</th> | |
| 14 | + <th>必选</th> | |
| 15 | + <th>类型</th> | |
| 16 | + <th>说明</th> | |
| 17 | + </tr> | |
| 18 | + <tr> | |
| 19 | + <td>appId</td> | |
| 20 | + <td>true</td> | |
| 21 | + <td>string</td> | |
| 22 | + <td>应用ID</td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <td>id</td> | |
| 26 | + <td>true</td> | |
| 27 | + <td>string</td> | |
| 28 | + <td>主题ID</td> | |
| 29 | + </tr> | |
| 30 | + <tr> | |
| 31 | + <td>sid</td> | |
| 32 | + <td>false</td> | |
| 33 | + <td>string</td> | |
| 34 | + <td>用户id</td> | |
| 35 | + </tr> | |
| 36 | + <tr> | |
| 37 | + <td>plat</td> | |
| 38 | + <td>true</td> | |
| 39 | + <td>string</td> | |
| 40 | + <td>i=IOS客户端,a=Android客户端</td> | |
| 41 | + </tr> | |
| 42 | +</table> | |
| 43 | + | |
| 44 | +----- | |
| 45 | +#### 返回格式说明: | |
| 46 | +``` | |
| 47 | +{ | |
| 48 | + "errorCode":"0", | |
| 49 | + "errorMessage":"成功", | |
| 50 | + "data":{ | |
| 51 | + "total_columns":"2", //点赞总数 | |
| 52 | + "praised":"true" //当前用户是否点赞 true:已点赞 false:未点赞 | |
| 53 | + } | |
| 54 | +} | |
| 55 | + | |
| 56 | +``` | |
| 0 | 57 | \ No newline at end of file | ... | ... |