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

/// A Twitter fetcher with request configuration already bound.
pub type BoundTwitterFetcher = TwitterFetcher;

/// Create a Twitter fetcher with an optional cookie and request overrides.
#[doc(alias = "createBoundTwitterFetcher")]
pub fn create_bound_twitter_fetcher(
    cookie: impl Into<String>,
    request: Option<RequestConfig>,
) -> BoundTwitterFetcher {
    TwitterFetcher::from_cookie(cookie, request.unwrap_or_default())
}