#api-client #contact #generated #opinionated #user-agent #env-var #hubspot

hubspot-contacts

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

1 unstable release

0.1.1 Oct 1, 2024

#893 in Web programming

Download history 298/week @ 2024-09-28 200/week @ 2024-10-05 94/week @ 2024-10-12 178/week @ 2024-10-19 94/week @ 2024-10-26 130/week @ 2024-11-02 124/week @ 2024-11-09 80/week @ 2024-11-16 42/week @ 2024-11-23 87/week @ 2024-11-30

343 downloads per month

MIT license

120KB
2.5K SLoC

hubspot-contacts

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

docs.rs

API Details

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-contacts = "0.1.1"

Basic example

Typical use will require intializing a Client. This requires a user agent string and set of credentials.

use hubspot_contacts::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_CONTACTS_API_TOKEN

And then you can create a client from the environment.

use hubspot_contacts::Client;

let client = Client::new_from_env();

lib.rs:

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

docs.rs

API Details

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-contacts = "0.1.1"

Basic example

Typical use will require intializing a Client. This requires a user agent string and set of credentials.

use hubspot_contacts::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_CONTACTS_API_TOKEN

And then you can create a client from the environment.

use hubspot_contacts::Client;

let client = Client::new_from_env();

Dependencies

~24–40MB
~408K SLoC