Crates.io | hubspot-users |
lib.rs | hubspot-users |
version | 0.1.1 |
source | src |
created_at | 2024-09-24 20:24:12.086187 |
updated_at | 2024-10-01 17:16:53.042304 |
description | A fully generated & opinionated API client for the Hubspot Users API. |
homepage | |
repository | |
max_upload_size | |
id | 1385655 |
size | 83,565 |
hubspot-users
A fully generated & opinionated API client for the Hubspot Users API.
Add, manage, and remove users from your account
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]
hubspot-users = "0.1.1"
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use hubspot_users::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:
HUBSPOT_USERS_API_TOKEN
And then you can create a client from the environment.
use hubspot_users::Client;
let client = Client::new_from_env();