ActiveCampaign / activecampaign-api-nodejs

Node.js wrapper for the ActiveCampaign API
MIT License
39 stars 36 forks source link

add contact #55

Open yasir-rafiq opened 5 years ago

yasir-rafiq commented 5 years ago

Hi I am tring to add contact, added successfully but firstName and lastName is not showing as full name. Please also let me know how I can add contact in list? Please help.

sabarasaba commented 5 years ago

I was having the same problem, turns out the documentation in their website is for v3 while the library seems to be using 1x or 2x.. I was able to solve it by following the docs of v1:

var contact = {
  email: 'pepe@gmail.com',
  'first_name': 'pepe',
  'last_name': 'roberto',
  'field[1]': 'company',
  'field[7]': 'website-contact',
};