ncm_api_rs/api/album_detail_dynamic.rs
1use super::Query;
2use crate::error::Result;
3/// 专辑动态信息
4/// 对应 Node.js module/album_detail_dynamic.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 /// 专辑动态信息
10 /// 对应 /album/detail/dynamic
11 pub async fn album_detail_dynamic(&self, query: &Query) -> Result<ApiResponse> {
12 let data = json!({
13 "id": query.get_or("id", "0")
14 });
15 self.request(
16 "/api/album/detail/dynamic",
17 data,
18 query.to_option(CryptoType::Weapi),
19 )
20 .await
21 }
22}