1 unstable release
new 0.4.0 | Jan 5, 2025 |
---|
#179 in #model
22KB
561 lines
pkrs
Warning
This crate is primarily a hobby project of mine in order to learn the basics of Rust, and probably doesn't follow sensible best-practices.If you're looking for something stable and well-written, look elsewhere!
(You have been warned)
A very simple wrapper around the PluralKit api using reqwest and serde. It closely follows the structure of the API itself, and as such the official API documentation is likely the best resource for now.
If you have any suggestions or run into any issues please let me know on GitHub, and contributions are definitely welcome!
lib.rs
:
A very simple wrapper around the PluralKit api using reqwest and serde.
It closely follows the structure of the API itself, and as such the official API documentation is likely the best resource for now.
Examples
Creating a PkClient
and getting a System
use pkrs::client::PkClient;
use pkrs::model::System;
let client = PkClient {
token: my-token,
..Default::default()
};
let sys: System = client.get_system("abcde".into()).await?;
Dependencies
~3–17MB
~277K SLoC