ncm_api_rs/api/
starpick_comments_summary.rs1use super::Query;
2use crate::error::Result;
3use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 pub async fn starpick_comments_summary(&self, query: &Query) -> Result<ApiResponse> {
12 let cursor = json!({
13 "offset": 0,
14 "blockCodeOrderList": ["HOMEPAGE_BLOCK_NEW_HOT_COMMENT"],
15 "refresh": true
16 });
17 let data = json!({
18 "cursor": cursor.to_string()
19 });
20 self.request(
21 "/api/homepage/block/page",
22 data,
23 query.to_option(CryptoType::default()),
24 )
25 .await
26 }
27}