Skip to content

获取历史日推可用日期列表 ​

调用此接口,可获得历史日推可用日期列表

接口信息 ​

项目值
接口地址/history/recommend/songs
请求方式GET / POST
需要登录否
对应模块history_recommend_songs
文档分类推荐与发现

请求参数 ​

这页暂时没有单独整理参数表,直接参考下面的示例调用即可。

HTTP 示例 ​

bash
GET /history/recommend/songs

编程式调用 ​

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

const result = await historyRecommendSongs();

console.log(result.body);

返回内容 ​

body.code、body.data、data.dates 收紧,data.dates[] 是日期字符串;purchaseUrl、description、noHistoryMessage 宽松;message 未声明,原样保留。data.songs 在登录和匿名录制里都是 null,没有非 null 证据,未声明并原样保留。结构定义和类型是 HistoryRecommendSongsBody,见 返回体结构。

补充说明 ​

说明 : 调用此接口,可获得历史日推可用日期列表

接口地址 : /history/recommend/songs

调用例子 : /history/recommend/songs

Released under the MIT License.