ncm_api_rs/api/
voicelist_list.rs1use super::Query;
2use crate::error::Result;
3use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 pub async fn voicelist_list(&self, query: &Query) -> Result<ApiResponse> {
12 let data = json!({
13 "limit": query.get_or("limit", "200"),
14 "offset": query.get_or("offset", "0"),
15 "voiceListId": query.get_or("voiceListId", "")
16 });
17 self.request(
18 "/api/voice/workbench/voices/by/voicelist",
19 data,
20 query.to_option(CryptoType::Eapi),
21 )
22 .await
23 }
24}