6 releases (3 breaking)

0.4.0 Apr 16, 2024
0.3.1 Aug 9, 2023
0.3.0 Jul 13, 2023
0.2.1 Jul 12, 2023
0.1.1 Jul 6, 2023

#116 in #api-wrapper

Download history 77/week @ 2024-02-19 16/week @ 2024-02-26 3/week @ 2024-03-04 8/week @ 2024-03-11 10/week @ 2024-04-01 127/week @ 2024-04-15

137 downloads per month

MIT license

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–14MB
~204K SLoC