Crates.io | dolladollabills |
lib.rs | dolladollabills |
version | 0.7.0 |
source | src |
created_at | 2022-04-05 02:06:43.846365 |
updated_at | 2023-07-19 18:36:14.351018 |
description | A fully generated & opinionated API client for the Stripe API. |
homepage | |
repository | https://github.com/oxidecomputer/third-party-api-clients/tree/main/stripe |
max_upload_size | |
id | 562387 |
size | 2,788,964 |
dolladollabills
A fully generated, opinionated API client library for Stripe.
The Stripe REST API. Please see https://stripe.com/docs/api for more details.
name | url | |
---|---|---|
Stripe Dev Platform Team | https://stripe.com | dev-platform@stripe.com |
This client is generated from the Stripe OpenAPI
specs based on API spec version 2020-08-27
. This way it will remain
up to date as features are added. The documentation for the crate is generated
along with the code to make this library easy to use.
To install the library, add the following to your Cargo.toml
file.
[dependencies]
dolladollabills = "0.7.0"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use dolladollabills::Client;
let stripe = Client::new(
String::from("api-key"),
);
Alternatively, the library can search for most of the variables required for the client in the environment:
STRIPE_API_KEY
And then you can create a client from the environment.
use dolladollabills::Client;
let stripe = Client::new_from_env();