Skip to content

通知 - 通知

登录后调用此接口 ,可获取通知

接口信息

项目
接口地址/msg/notices
请求方式GET / POST
需要登录
对应模块msg_notices
文档分类社交与消息

请求参数

参数类型必填默认值说明
limitnumber | string30返回数量,默认为 30
lasttimestring-1,传入上一次返回结果的返回数据的 time ,默认-1,传入上一次返回结果的 time,将会返回下一页的数据

HTTP 示例

bash
GET /msg/notices?limit=3

编程式调用

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

const result = await msgNotices({
  limit: '3',
})

console.log(result.body)

补充说明

说明 : 登录后调用此接口 ,可获取通知

可选参数 :

limit : 返回数量,默认为 30

lasttime : 返回数据的 time ,默认-1,传入上一次返回结果的 time,将会返回下一页的数据

接口地址 : /msg/notices

调用例子 : /msg/notices?limit=3

Released under the MIT License.