amagi 0.1.1

Rust SDK, CLI, and Web API service skeleton for multi-platform social web adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::client::RequestConfig;

use super::XiaohongshuFetcher;

/// A Xiaohongshu fetcher with cookie and request configuration already bound.
pub type BoundXiaohongshuFetcher = XiaohongshuFetcher;

/// Create a Xiaohongshu fetcher with a pre-bound cookie and optional request overrides.
#[doc(alias = "createBoundXiaohongshuFetcher")]
pub fn create_bound_xiaohongshu_fetcher(
    cookie: impl Into<String>,
    request: Option<RequestConfig>,
) -> BoundXiaohongshuFetcher {
    XiaohongshuFetcher::from_cookie(cookie, request.unwrap_or_default())
}