activecampaign-api-nodejs icon indicating copy to clipboard operation
activecampaign-api-nodejs copied to clipboard

add contact

Open yasir-rafiq opened this issue 7 years ago • 1 comments

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.

yasir-rafiq avatar Oct 18 '18 06:10 yasir-rafiq

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: '[email protected]',
  'first_name': 'pepe',
  'last_name': 'roberto',
  'field[1]': 'company',
  'field[7]': 'website-contact',
};

sabarasaba avatar Sep 20 '19 08:09 sabarasaba