#user #api-client #generated #opinionated #manage #account #hubspot

hubspot-users

A fully generated & opinionated API client for the Hubspot Users API

2 releases

0.1.1 Oct 1, 2024
0.1.0 Sep 24, 2024

#1574 in Web programming

Download history 200/week @ 2024-09-21 292/week @ 2024-09-28 128/week @ 2024-10-05 56/week @ 2024-10-12 70/week @ 2024-10-19 29/week @ 2024-10-26 37/week @ 2024-11-02 19/week @ 2024-11-09 18/week @ 2024-11-16 3/week @ 2024-11-23

83 downloads per month

MIT license

76KB
1.5K SLoC

hubspot-users

A fully generated & opinionated API client for the Hubspot Users API.

docs.rs

API Details

Add, manage, and remove users from your account

Client Details

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"

Basic example

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

Dependencies

~24–43MB
~411K SLoC