ncm_api_rs/api/ugc_artist_get.rs
1use super::Query;
2use crate::error::Result;
3/// 歌手简要百科信息
4/// 对应 Node.js module/ugc_artist_get.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 /// 歌手简要百科信息
10 /// 对应 /ugc/artist/get
11 pub async fn ugc_artist_get(&self, query: &Query) -> Result<ApiResponse> {
12 let data = json!({
13 "artistId": query.get_or("id", "")
14 });
15 self.request(
16 "/api/rep/ugc/artist/get",
17 data,
18 query.to_option(CryptoType::Eapi),
19 )
20 .await
21 }
22}