ncm_api_rs/api/playlist_hot.rs
1use super::Query;
2use crate::error::Result;
3/// 热门歌单标签
4/// 对应 Node.js module/playlist_hot.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 /// 热门歌单标签
10 /// 对应 /playlist/hot
11 pub async fn playlist_hot(&self, query: &Query) -> Result<ApiResponse> {
12 let data = json!({});
13 self.request(
14 "/api/playlist/hottags",
15 data,
16 query.to_option(CryptoType::Weapi),
17 )
18 .await
19 }
20}