pkrs_fork/lib.rs
1//! A very simple wrapper around the [PluralKit](https://pluralkit.me/) api using [reqwest](https://docs.rs/reqwest/latest/reqwest/) and [serde](https://crates.io/crates/serde).
2//!
3//! It closely follows the structure of the API itself, and as such the official [API documentation](https://pluralkit.me/api/) is likely the best resource for now.
4//!
5//! # Examples
6//! Creating a `PkClient` and getting a `System`
7//! ```
8//! use pkrs::client::PkClient;
9//! use pkrs::model::System;
10//!
11//! let client = PkClient {
12//! token: my-token,
13//! ..Default::default()
14//! };
15//!
16//! let sys: System = client.get_system("abcde".into()).await?;
17//! ```
18
19pub mod model;
20
21#[cfg(feature="reqwest-client")]
22pub mod client;