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
//! [`ChilloutVR`](https://store.steampowered.com/app/661130/ChilloutVR/)'s API models in rust.
//!
//! This is fully unofficial and in no way affiliated, endorsed, supported,
//! or created by Alpha Blend Interactive, the creators of `ChilloutVR`.
//!
//! The crate has models of the responses, with proper serde support.
//! It also definitions for the requests, using [`racal`](https://docs.rs/racal/latest/racal/) for the HTTP parts,
//! and big request/response enums for `WebSocket`s,
//! meaning that there's no lock-in to a single API client.
//! An example API client is provided for convenience though using [`reqwest`](https://crates.io/crates/reqwest).
//!
//! The API technically isn't public yet, so proceed with your own discretion.
//! That also means there is no official API documentation.
//! Which means it's possible that some things are wrong
//! and/or will change a lot in the future.
// My project my choice, tabs are literally made for indentation, spaces not.
// Not much can be done about it :/
// ...Yes, mixed `/1/` and `/v1/`....
// ABI I love you, but plz, this is next level sinning with your API
/// The main API endpoint
pub const API_V1_HTTP_URL: &str = "https://api.abinteractive.net/1";
/// The API host name
pub const API_V1_HOSTNAME: &str = "api.abinteractive.net";
/// The WS API endpoint
pub const API_V1_WS_URL: &str = "wss://api.abinteractive.net/1/users/ws";
// The gateway endpoint... Website/old API probably?
//pub const API_V1_GAME_DATA: &str = "https://gateway.abi.network/v1/IGameData";