stripe2

Crates.iostripe2
lib.rsstripe2
version32.0.0
sourcesrc
created_at2022-10-21 02:20:31.884348
updated_at2023-12-21 00:48:13.344924
descriptionStripe client, generated from the OpenAPI spec.
homepagehttps://github.com/libninjacom/stripe-rs
repositoryhttps://github.com/libninjacom/stripe-rs
max_upload_size
id693129
size6,848,086
Kurt Wolf (kurtbuilds)

documentation

https://docs.rs/stripe2

README

Stars Build Status Downloads Crates.io

Stripe client, generated from the OpenAPI spec.

Usage

use stripe::StripeClient;
use stripe::model::*;
#[tokio::main]
async fn main() {
    let client = StripeClient::from_env();
    let response = client.get_account().await.unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • STRIPE_SECRET_KEY

Installation

Add this to your Cargo.toml:

[dependencies]
stripe2 = ".."

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Commit count: 36

cargo fmt