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

#1841 in Web programming

Download history 41/week @ 2024-07-24 9/week @ 2024-07-31 11/week @ 2024-09-18 16/week @ 2024-09-25

413 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
~170K SLoC