Does anyone know the format to reference the v1 API from custom code with Node js? I'm trying to use the contact list API.
For v3, the API URL to get contact info is something like: /crm/v3/objects/contacts/2360301
And the equivalent js is: hubspotClient.crm.contacts.basicApi.getById(item.id, .....) (where item.id = 2360301)
For v1, an example API URL is to get a list is: /contactslistseg/v1/lists/1
But I can't get the js equivalent to get data on list #1. Feels it should just be using hubSpotClient.contactslistseg.lists... but that gives an undefined error.
Thanks for any ideas! Feels like I've tried every possible combination.
I went through the github of the NodeJS API, but I can not discover a .ts file for the lists. The discovery folder is my go to place to check for all the available functions. But lists simply seem to be missing NodeJS API. If you are familiar with Axios, you should be able to use that instead. Here is an example:
I went through the github of the NodeJS API, but I can not discover a .ts file for the lists. The discovery folder is my go to place to check for all the available functions. But lists simply seem to be missing NodeJS API. If you are familiar with Axios, you should be able to use that instead. Here is an example: