7 releases

0.2.0 Oct 30, 2023
0.1.1 Apr 20, 2023
0.0.4 Apr 17, 2023
0.0.1 Mar 29, 2023

#1452 in Web programming

AGPL-3.0-or-later

210KB
3K SLoC

briteverify-rs

crate documentation tests coverage

briteverify-rs provides a type-safe, ergonomic client for the BriteVerify API based on the popular reqwest HTTP client library.

It aims to provide a simple and convenient way to interact with the BriteVerify API from Rust. It tries to be easy to use, with a focus on allowing devs to quickly get up and running with the API.

License

AGPL-3.0-or-later

Basic Usage

let response: AccountCreditBalance = BriteVerifyClient::new("YOUR API KEY HERE")?
    .get_account_balance()
    .await?;

println!("{response:#?}");

Features

briteverify-rs provides:

  • Fully documented reqwest-based client for the BriteVerify API
  • Type-safe requests and responses w/ serde support
  • Support for all¹ single-transaction and bulk² BriteVerify API endpoints
  • Easy-to-use API that follows Rust conventions

  • 1: briteverify-rs makes a best-effort attempt to stay current with the BriteVerify API, but is ultimately maintained independently. Best-effort means that no guarantees are made, but PRs are always accepted.
  • 2: briteverify-rs currently implements support for the v3 bulk endpoints, with no plans to add support for legacy or deprecated endpoints (namely the v2 endpoints in this case).

TODO:

  • Tests 😅

Dependencies

~5–22MB
~336K SLoC