Client libraries are designed to help you interact with the HubSpot APIs with less friction. They are written in several different languages and help bridge the gap between your application and HubSpot’s APIs. They take away the need to know the exact URL and HTTP method to use for each API call among other things, leaving you more time to focus on building your application.
Starting from the source code that powers the HubSpot application, HubSpot generate documents that describe our APIs using the Open API format. Those documents are fed into the Open API code generator, then the generated files end up in the libraries. A team of developers at HubSpot then take the output of this code generation and adds more value to it through utility functions to help with things like rate limiting as well as number of example applications to show how to use the libraries in practice. These examples cover a wide range of use cases.
Use the endpoint below to access the available Open API specifications
GET http://api.hubspot.com/public/api/spec/v1/specs
Language |
Package Link |
Source Code |
---|---|---|
Node.js |
||
PHP |
||
Ruby |
||
Python |
To start using these client libraries, you'll need a HubSpot account, either a standard account or an app developer account.
- In a standard account, you can create a private app which comes with an access token to authenticate calls.
- In a developer account, you can create a public app which uses OAuth to authenticate calls.
Once you have a HubSpot account and a private app access token or OAuth token, you can install the library. Below, see an example of installing the Node.JS client, instantiating the client, and general usage.
Install
Instantiate client
Usage
Thank you for your feedback, it means a lot to us.