Skip to content

获取用户历史评论

登录后调用此接口,传入用户 id, 可以获取用户历史评论

接口信息

项目
接口地址/user/comment/history
请求方式GET / POST
需要登录
对应模块user_comment_history
文档分类评论

请求参数

参数类型必填默认值说明
uidstring-用户 id
limitnumber | string10返回数量,默认为 10
timenumber | string0上一条数据的 time,第一页不需要传,默认为 0

HTTP 示例

bash
GET /user/comment/history?uid=32953014
GET /user/comment/history?uid=32953014&limit=1&time=1616217577564

编程式调用

ts
import { userCommentHistory } from 'hana-music-api'

const result = await userCommentHistory({
  uid: '32953014',
})

console.log(result.body)

补充说明

说明 : 登录后调用此接口,传入用户 id, 可以获取用户历史评论

必选参数 : uid : 用户 id

可选参数 :

limit : 返回数量,默认为 10

time: 上一条数据的 time,第一页不需要传,默认为 0

接口地址 : /user/comment/history

调用例子 :/user/comment/history?uid=32953014/user/comment/history?uid=32953014&limit=1&time=1616217577564 (需要换成自己的用户 id)

Released under the MIT License.