9 unstable releases (3 breaking)

0.7.0 Jul 19, 2023
0.7.0-rc.1 Jun 12, 2023
0.3.0 Mar 31, 2023
0.2.1 Nov 18, 2022
0.1.1 Sep 23, 2021

#1799 in Web programming

Download history 17/week @ 2024-06-19 12/week @ 2024-06-26 13/week @ 2024-07-03 10/week @ 2024-07-10 15/week @ 2024-07-17 31/week @ 2024-07-24 27/week @ 2024-07-31 76/week @ 2024-08-07 77/week @ 2024-08-14 26/week @ 2024-08-21 48/week @ 2024-08-28 37/week @ 2024-09-04 41/week @ 2024-09-11 55/week @ 2024-09-18 73/week @ 2024-09-25 118/week @ 2024-10-02

292 downloads per month

MIT license

260KB
5.5K SLoC

shipbob

A fully generated, opinionated API client library for ShipBob.

docs.rs

API Details

ShipBob Developer API Documentation

Authentication

Client Details

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"

Basic example

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();

Dependencies

~16–33MB
~611K SLoC