Commit ad477391c83b203a55892625d67055e916cf49a3
1 parent
0c3e018d
add 读取点赞排行
Showing
2 changed files
with
83 additions
and
1 deletions
05.互动云/9.1点赞-并根据标签记录排行.md
05.互动云/9.2点赞-读取点赞排行.md
0 → 100644
| 1 | +/* | |
| 2 | + Title: 9.2 读取点赞排行 | |
| 3 | + Sort: 16 | |
| 4 | +*/ | |
| 5 | +#### URL: https://api.cnlive.com/open/api2/commentServices/services/supportBySpIdForEye/readRank | |
| 6 | +----- | |
| 7 | +#### 请求方式: get | |
| 8 | +----- | |
| 9 | +#### 返回格式: JSON | |
| 10 | +----- | |
| 11 | +#### 请求参数说明: | |
| 12 | +<table class="table table-bordered table-striped table-condensed"> | |
| 13 | + <tr> | |
| 14 | + <th>参数</th> | |
| 15 | + <th>必选</th> | |
| 16 | + <th>类型</th> | |
| 17 | + <th>说明</th> | |
| 18 | + </tr> | |
| 19 | + <tr> | |
| 20 | + <td>appId</td> | |
| 21 | + <td>true</td> | |
| 22 | + <td>string</td> | |
| 23 | + <td>应用ID</td> | |
| 24 | + </tr> | |
| 25 | + <tr> | |
| 26 | + <td>plat</td> | |
| 27 | + <td>true</td> | |
| 28 | + <td>string</td> | |
| 29 | + <td>i=IOS客户端,a=Android客户端</td> | |
| 30 | + </tr> | |
| 31 | + <tr> | |
| 32 | + <td>contentTag</td> | |
| 33 | + <td>true</td> | |
| 34 | + <td>string</td> | |
| 35 | + <td>内容标签</td> | |
| 36 | + </tr> | |
| 37 | + <tr> | |
| 38 | + <td>num</td> | |
| 39 | + <td>true</td> | |
| 40 | + <td>string</td> | |
| 41 | + <td>读取前几名</td> | |
| 42 | + </tr> | |
| 43 | + <tr> | |
| 44 | + <td>sign</td> | |
| 45 | + <td>true</td> | |
| 46 | + <td>string</td> | |
| 47 | + <td>签名</td> | |
| 48 | + </tr> | |
| 49 | +</table> | |
| 50 | + | |
| 51 | +----- | |
| 52 | +#### 返回格式说明: | |
| 53 | +``` | |
| 54 | +{ | |
| 55 | + "ranks": [{ | |
| 56 | + "contentId": "10012", | |
| 57 | + "contentTitle": "yinghua", | |
| 58 | + "contentSid": "10504", | |
| 59 | + "nick": "###", | |
| 60 | + "face": "http://yweb0.cnliveimg.com/images/headImg/2019/0215/1550199629722.jpg", | |
| 61 | + "score": "4.0", | |
| 62 | + "ranking": "1" | |
| 63 | + }, { | |
| 64 | + "contentId": "10016", | |
| 65 | + "contentTitle": "yinghua", | |
| 66 | + "contentSid": "10535", | |
| 67 | + "nick": "###", | |
| 68 | + "face": "http://yweb0.cnliveimg.com/images/headImg/2019/0215/1550199629722.jpg", | |
| 69 | + "score": "3.0", | |
| 70 | + "ranking": "2" | |
| 71 | + }, { | |
| 72 | + "contentId": "10015", | |
| 73 | + "contentTitle": "yinghua", | |
| 74 | + "contentSid": "10561", | |
| 75 | + "nick": "###", | |
| 76 | + "face": "http://yweb0.cnliveimg.com/images/headImg/2019/0215/1550199629722.jpg", | |
| 77 | + "score": "2.0", | |
| 78 | + "ranking": "3" | |
| 79 | + }] | |
| 80 | +} | |
| 81 | + | |
| 82 | +``` | |
| 0 | 83 | \ No newline at end of file | ... | ... |