Npm hubspot - what should data and callback look like?


I'm using the npm hubspot package:
It's pretty popular but surprisingly I can't find any forums or examples of their calls. I've got my user's name, email and company saved and I want to create a new Hubspot contact. I know I need to call hubspot.contacts.create(data, cb).
What exactly should the data and cb arguments look like?


Hi @hubspot_e,

That's a 3rd party library that we don't actually maintain, so I'm not particularly familiar with the methods/arguments. My guess would be that the data parameter is just the request payload as described according to our API Docs (see below), and that the cb parameter is an optional callback. Check out the docs on creating a contact below for details on what the request payload must be: