Skip to main content

ncm_api_rs/api/
artist_follow_count.rs

1use super::Query;
2use crate::error::Result;
3/// 歌手粉丝数量
4/// 对应 Node.js module/artist_follow_count.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9    /// 歌手粉丝数量
10    /// 对应 /artist/follow/count
11    pub async fn artist_follow_count(&self, query: &Query) -> Result<ApiResponse> {
12        let data = json!({
13            "id": query.get_or("id", "0")
14        });
15        self.request(
16            "/api/artist/follow/count/get",
17            data,
18            query.to_option(CryptoType::Weapi),
19        )
20        .await
21    }
22}