1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Remote HTTP client for `steam-user-api`.
//!
//! This module provides [`RemoteSteamUser`], which mirrors the `SteamUser` API
//! but delegates all operations to a remote `steam-user-api` REST server.
//! Supports multiple server URLs with round-robin load balancing and automatic
//! retry on failure.
//!
//! # Feature flag
//!
//! This module is only available when the `remote` feature is enabled:
//!
//! ```toml
//! [dependencies]
//! steam-user = { version = "...", features = ["remote"] }
//! ```
//!
//! # Example
//!
//! ```rust,no_run
//! use steam_user::remote::RemoteSteamUser;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), steam_user::remote::RemoteSteamUserError> {
//! // Single server
//! let user = RemoteSteamUser::new(
//! "https://my-api.example.com",
//! &[
//! "steamLoginSecure=76561198012345678||YOUR_ACCESS_TOKEN",
//! "sessionid=YOUR_SESSION_ID",
//! ],
//! );
//!
//! // Multiple servers with round-robin
//! let user = RemoteSteamUser::with_urls(
//! &[
//! "https://api-1.example.com",
//! "https://api-2.example.com",
//! "https://api-3.example.com",
//! ],
//! &[
//! "steamLoginSecure=76561198012345678||YOUR_ACCESS_TOKEN",
//! "sessionid=YOUR_SESSION_ID",
//! ],
//! );
//!
//! Ok(())
//! }
//! ```
pub use RemoteSteamUser;
pub use RemoteSteamUserError;