ActiveCampaign / activecampaign-api-nodejs

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

Cannot find module 'Contact' when installed through npm #1

Closed selipso closed 10 years ago

selipso commented 10 years ago

All parts of the example code work for me (the GET and the POST) except for the part where it checks whether the contact exists. Here's the full error log:

screen shot 2014-03-03 at 7 59 27 pm

selipso commented 10 years ago

I think it has to do with the changes from subscriber to contact, because when I change "contact" to "subscriber" like

var contact_exists = ac.api("subscriber/view?email=email@example.com", {}, function(response) {
    console.log(response);
});

It works just fine

mthommes commented 10 years ago

Hi, sorry about this! You are correct that we still had our old subscriber stuff in there. I just updated our package on NPM.

So you would use contact/view going forward (subscriber stuff was removed).

Let us know of any other issues you might find.