Stripe client, generated from the OpenAPI spec.
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
Add this to your Cargo.toml:
[dependencies]
stripe2 = ".."
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.