Helpful Generic Hubspot api client to make request to hubspot.
Ideally used on serverless function with typescript to make calls on Hubspot api.
Add the packagee in your project.
yarn add hubspot-unopinionated-api
import { HubspotClientApi } from 'hubspot-api-client';
const api = HubspotClientApi({
api_key: YOUR_HUBSPOT_API_KEY
});
const post = api.object.getObjectById({
params: {
pathParams: {
objectId: 151,
objectType: 'post',
},
queryParams: {
properties: 'title,slug',
},
},
});
Currently supports few hubspot endpoint.
Api instance can use object
, association
, engagement
and file
to make various request.
- Hubspot
- Axios
- Typescript
SemVer for versioning.
Madan