Crates.io | kittycad |
lib.rs | kittycad |
version | 0.3.25 |
source | src |
created_at | 2022-06-16 18:46:19.844073 |
updated_at | 2024-10-25 20:29:40.92347 |
description | A fully generated & opinionated API client for the KittyCAD API. |
homepage | |
repository | https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad |
max_upload_size | |
id | 607618 |
size | 1,042,665 |
kittycad
A fully generated & opinionated API client for the KittyCAD API.
API server for Zoo
url | |
---|---|
https://zoo.dev | api@zoo.dev |
This client is generated from the OpenAPI specs based on API spec version 0.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]
kittycad = "0.3.25"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use kittycad::Client;
let client = Client::new(
String::from("api-key"),
);
Alternatively, the library can search for most of the variables required for the client in the environment:
KITTYCAD_API_TOKEN
ZOO_API_TOKEN
And then you can create a client from the environment.
use kittycad::Client;
let client = Client::new_from_env();