amagi 0.1.3

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::KuaishouFetcher;

/// A Kuaishou fetcher with cookie and request configuration already bound.
pub type BoundKuaishouFetcher = KuaishouFetcher;

/// Create a Kuaishou fetcher with a pre-bound cookie and optional request overrides.
#[doc(alias = "createBoundKuaishouFetcher")]
pub fn create_bound_kuaishou_fetcher(
    cookie: impl Into<String>,
    request: Option<RequestConfig>,
) -> BoundKuaishouFetcher {
    KuaishouFetcher::from_cookie(cookie, request.unwrap_or_default())
}