HubSpot / hubspot-api-nodejs

HubSpot API NodeJS Client Libraries for V3 version of the API
Apache License 2.0
325 stars 105 forks source link

Is there no way to create custom events via this SDK? #490

Open mikesnare opened 4 months ago

mikesnare commented 4 months ago

I see that you can send custom events using this SDK, but I don't see any way to create custom event definitions. Am I just missing it?

Sakib25800 commented 4 months ago

You're not missing it, there's no available methods to create it. You'll have to resort to hs.apiRequest({...}). I think since custom events are in beta they're not going to add the methods to the SDK just yet.

If you head over to the docs, it'll show you whether the request can be done via the SDK or not.

ksvirkou-hubspot commented 4 months ago

Hi @mikesnare Do you mean Send custom event completion? hubspotClient.events.send.customEventDataApi.send()

mikesnare commented 4 months ago

@ksvirkou-hubspot Nope. I mean management APIs for the event definitions themselves. I was able to switch to apiRequest as suggested for now. Thanks!