Skip to content

通知 - @我 ​

登录后调用此接口 ,可获取@我数据

接口信息 ​

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

请求参数 ​

参数类型必填默认值说明
limitnumber | string—30返回数量,默认为 30
offsetnumber | string—0偏移数量,用于分页,如:(页数 - 1)*30, 其中 30 为 limit 的值,默认为 0

HTTP 示例 ​

bash
GET /msg/forwards?limit=3

编程式调用 ​

ts
import { msgForwards } from 'hana-music-api';

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

console.log(result.body);

返回内容 ​

body.forwards 是 @我 列表,每条转发只收紧自己的 id;正文 json、time、type、userId、resourceExist 和来源对象 uf 宽松,uf.id 在宽松对象里也宽松。newCount、lasttime、more 宽松;offset 越界时返回空数组。未登录时上游返回 code: 301,SDK 按业务拒绝原样转交。结构定义和类型是 MsgForwardsBody。

补充说明 ​

说明 : 登录后调用此接口 ,可获取@我数据

可选参数 :

limit : 返回数量,默认为 30

offset : 偏移数量,用于分页,如:(页数 - 1)*30, 其中 30 为 limit 的值,默认为 0

接口地址 : /msg/forwards

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

Released under the MIT License.