Crates.io | front-api |
lib.rs | front-api |
version | 0.0.2 |
source | src |
created_at | 2022-08-09 23:16:15.177102 |
updated_at | 2022-08-16 17:35:02.429545 |
description | A fully generated & opinionated API client for the Front API. |
homepage | |
repository | |
max_upload_size | |
id | 642297 |
size | 970,304 |
front-api
A fully generated & opinionated API client for the Front API.
name | |
---|---|
Front Platform | api@frontapp.com |
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]
front-api = "0.0.2"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use front_api::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:
FRONT_API_TOKEN
And then you can create a client from the environment.
use front_api::Client;
let client = Client::new_from_env();