Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/libninjacom/stripe-rs
- Owner: libninjacom
- License: mit
- Created: 2022-08-05T23:11:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T00:47:16.000Z (11 months ago)
- Last Synced: 2024-08-08T19:56:26.474Z (3 months ago)
- Topics: openapi, rust, stripe
- Language: Rust
- Homepage: https://stripe.com/docs
- Size: 1.85 MB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
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).*