- 使用须知
- 首页中心
- 登录
- 个人中心
- 视频中心
- 通用
获取资源评论
开发中
GET
/comment/new
必选参数 :
id : 资源 id, 如歌曲 id,mv id
可选参数 :
pageNo:分页参数,第 N 页,默认为 1
请求参数
Query 参数
type
string
可选
示例值:
0
id
string
可选
示例值:
1407551413
sortType
array[string]
可选
示例值:
["3, /comment/new?type=0","3"]
cursor
string
可选
示例值:
1602072870260
pageSize
string
可选
示例值:
20
pageNo
string
可选
示例值:
2
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3000/comment/new?type=0&id=1407551413&sortType=3, /comment/new?type=0&sortType=3&cursor=1602072870260&pageSize=20&pageNo=2'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
commentsTitle
string
必需
comments
array [object {42}]
必需
currentCommentTitle
string
必需
currentComment
null
必需
totalCount
integer
必需
hasMore
boolean
必需
cursor
string
必需
sortType
integer
必需
sortTypeList
array [object {3}]
必需
style
string
必需
bottomAction
null
必需
示例
{ "code": 200, "data": { "commentsTitle": "全部评论", "comments": [ { "user": { "avatarDetail": null, "commonIdentity": null, "locationInfo": null, "liveInfo": null, "followed": false, "vipRights": null, "relationTag": null, "anonym": 0, "encryptUserId": "010299ED5791151DEE74A29026377B01405E", "userId": 352302464, "userType": 0, "nickname": "放学的路上", "avatarUrl": "http://p3.music.126.net/JhgZE999Et3uQ6havIX9GQ==/109951163977741937.jpg", "authStatus": 0, "expertTags": null, "experts": null, "vipType": 0, "remarkName": null, "isHug": false, "socialUserId": null, "target": null }, "beReplied": null, "commentId": 5800578292, "threadId": "R_SO_4_1407551413", "content": "沙发", "richContent": "沙发", "status": 0, "time": 1669871753635, "timeStr": "2022-12-01", "needDisplayTime": true, "likedCount": 1, "replyCount": 0, "liked": false, "expressionUrl": null, "parentCommentId": 0, "repliedMark": false, "pendantData": null, "pickInfo": { "status": "NOT_PICK" }, "showFloorComment": { "replyCount": 0, "comments": null, "showReplyCount": false, "topCommentIds": null, "target": null }, "decoration": {}, "commentLocationType": 0, "musicianSayAirborne": null, "args": "{\"reason_tags\":\"hot\",\"recall_sorter\":\"tophot_sorter\",\"algs\":\"hot\",\"audit_reason\":\"tophot\",\"recall_score\":\"1.0\"}", "tag": { "datas": null, "extDatas": [], "contentDatas": null, "contentPicDatas": null, "relatedCommentIds": null }, "source": null, "resourceSpecialType": null, "extInfo": {}, "commentVideoVO": { "showCreationEntrance": false, "allowCreation": false, "creationOrpheusUrl": null, "playOrpheusUrl": null, "videoCount": 0, "forbidCreationText": "作者未开放制作权限" }, "contentResource": null, "contentPicNosKey": null, "contentPicUrl": null, "grade": null, "userBizLevels": null, "userNameplates": null, "ipLocation": { "ip": null, "location": "安徽", "userId": 352302464 }, "owner": false, "tail": null, "hideSerialComments": null, "hideSerialTips": null, "topicList": null, "privacy": 2, "track": "{\"display\":0,\"position\":-1,\"highQuality\":0}" }, { "user": { "avatarDetail": null, "commonIdentity": null, "locationInfo": null, "liveInfo": null, "followed": false, "vipRights": { "associator": { "vipCode": 100, "rights": true, "iconUrl": "http://p6.music.126.net/obj/wovDmcKXw6PCn2_CmsOk/17941165708/729a/1820/dde9/fdcaf8af1bb6a0f5740cc7555a3fcb57.png" }, "musicPackage": { "vipCode": 220, "rights": true, "iconUrl": "https://p5.music.126.net/obj/wonDlsKUwrLClGjCm8Kx/21892874340/50e6/e81d/5292/2d693cbb98954e28d4d9fdb11be99a8b.png" }, "redplus": null, "redVipAnnualCount": -1, "redVipLevel": 3 }, "relationTag": null, "anonym": 0, "encryptUserId": "01007D422898F02303F3C22C83E517A2562B",