amagi 0.1.2

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

/// A Douyin fetcher with cookie and request configuration already bound.
pub type BoundDouyinFetcher = DouyinFetcher;

/// Create a Douyin fetcher with a pre-bound cookie and optional request overrides.
#[doc(alias = "createBoundDouyinFetcher")]
pub fn create_bound_douyin_fetcher(
    cookie: impl Into<String>,
    request: Option<RequestConfig>,
) -> BoundDouyinFetcher {
    DouyinFetcher::from_cookie(cookie, request.unwrap_or_default())
}