#buy #api #coffee #api-bindings #page #member-status

buy_me_a_coffee

A Rust crate for interacting with the Buy Me a Coffee API

1 unstable release

new 0.1.0 Oct 31, 2024

#953 in Web programming

Download history 112/week @ 2024-10-26

112 downloads per month

MIT license

13KB
247 lines

buy_me_a_coffee

Crates.io Version docs.rs Rust

A Rust crate for interacting with the Buy Me a Coffee API.

use buy_me_a_coffee::MemberStatus;

let client = buy_me_a_coffee::Client::new("personal access token here");

for membership in client.members(MemberStatus::All, 1).await.unwrap().data {
    //                                              ^ first page
    println!("{}", membership.payer_name);
}

Truthfully, this crate is not really ready to be used. It's not possible to test most things when I don't have any supporters on Buy Me a Coffee since the API returns a "No [subscriptions|supporters|extra purchases]" error. If someone would buy me a coffee, that would really help out with this project, wink wink...

Dependencies

~4–14MB
~198K SLoC