Skip to content

最近播放-播客 ​

调用此接口,可获得最近播放-播客

接口信息 ​

项目值
接口地址/record/recent/dj
请求方式GET / POST
需要登录否
对应模块record_recent_dj
文档分类听歌记录

请求参数 ​

参数类型必填默认值说明
limitnumber | string—100返回数量,默认为 100

HTTP 示例 ​

bash
GET /record/recent/dj?limit=1

编程式调用 ​

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

const result = await recordRecentDj({
  limit: '1',
});

console.log(result.body);

返回内容 ​

body.code、body.data、body.data.list 和每条记录的 resourceId(字符串)、电台 data.id 收紧;name、picUrl、dj、lastProgramId、programCount、playCount、categoryId、playTime、resourceType、total、message 宽松。limit 非数字时上游 HTTP 400 空正文被归一成 status: 200、body: '',结构定义保留这个空字符串分支。结构定义和类型是 RecordRecentDjBody,见 返回体结构。匿名调用返回 total: 0、list: [](录制 record_recent_dj.anonymous.json),作为真实空结果;登录录制见 record_recent_dj.default.json。

补充说明 ​

说明 : 调用此接口,可获得最近播放-播客

可选参数 : limit : 返回数量,默认为 100

接口地址 : /record/recent/dj

调用例子 : /record/recent/dj?limit=1

Released under the MIT License.