Skip to content

DIFM电台 - 分类 ​

调用此接口, 获取DIFM电台分类

接口信息 ​

项目值
接口地址/dj/difm/all/style/channel
请求方式GET / POST
需要登录否
对应模块dj_difm_all_style_channel
文档分类电台与播客

请求参数 ​

参数类型必填默认值说明
sourcesstring[] | string✅-来源列表, 0: 最嗨电音 1: 古典电台 2: 爵士电台

HTTP 示例 ​

bash
GET /dj/difm/all/style/channel?sources=[0]

编程式调用 ​

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

const result = await djDifmAllStyleChannel({
  sources: '[0]',
});

console.log(result.body);

返回内容 ​

body.code、通到频道列表的 body.data、data[].styles、data[].styles[].channels 和每个频道自己的编号 data[].styles[].channels[].id 收紧;message、source、风格的名称/描述、频道的封面/中文名/简介/radar 宽松,风格的 radar 只见过空数组,没有声明。sources: '[]' 返回空 data(录制 dj_difm_all_style_channel.empty.json)。录制按风格保留覆盖各字段的子集(索引 1,原始 15 个风格),channels 未截取,见 context.truncated。

补充说明 ​

说明: 调用此接口, 获取DIFM电台分类

必选参数 :

sources: 来源列表, 0: 最嗨电音 1: 古典电台 2: 爵士电台

接口地址: /dj/difm/all/style/channel

调用例子: /dj/difm/all/style/channel?sources=[0]

Released under the MIT License.