| Crates.io | stripe2 |
| lib.rs | stripe2 |
| version | 32.0.0 |
| created_at | 2022-10-21 02:20:31.884348+00 |
| updated_at | 2023-12-21 00:48:13.344924+00 |
| description | Stripe client, generated from the OpenAPI spec. |
| homepage | https://github.com/libninjacom/stripe-rs |
| repository | https://github.com/libninjacom/stripe-rs |
| max_upload_size | |
| id | 693129 |
| size | 6,848,086 |
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_KEYAdd 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.