Crates.io | shipbob |
lib.rs | shipbob |
version | 0.7.0 |
source | src |
created_at | 2021-09-22 19:54:21.511399 |
updated_at | 2023-07-19 18:33:59.510262 |
description | A fully generated & opinionated API client for the ShipBob API. |
homepage | |
repository | https://github.com/oxidecomputer/third-party-api-clients/tree/main/shipbob |
max_upload_size | |
id | 455079 |
size | 257,466 |
shipbob
A fully generated, opinionated API client library for ShipBob.
ShipBob Developer API Documentation
This client is generated from the ShipBob OpenAPI
specs based on API spec version 1.0
. 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]
shipbob = "0.7.0"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use shipbob::Client;
let shipbob = Client::new(
String::from("api-key"),
);
Alternatively, the library can search for most of the variables required for the client in the environment:
SHIPBOB_API_KEY
And then you can create a client from the environment.
use shipbob::Client;
let shipbob = Client::new_from_env();