Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/libninjacom/stripe-rs

stripe client, generated from the OpenAPI spec.
https://github.com/libninjacom/stripe-rs

openapi rust stripe

Last synced: 6 days ago
JSON representation

stripe client, generated from the OpenAPI spec.

Awesome Lists containing this project

README

        



Stars


Build Status



Downloads


Crates.io

Stripe client, generated from the OpenAPI spec.

# Usage

```rust
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:

```toml
[dependencies]
stripe2 = ".."
```

# Documentation

* [Client Library Documentation](https://docs.rs/stripe2)

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

# Contributing

Contributions are welcome!

*Library created with [Libninja](https://www.libninja.com).*