Closed selipso closed 10 years ago
I read the post on Detecting API Errors, but I am not receiving the status codes through the Node.js wrapper.
var contact_exists = ac.api("contact/view?email=test@example.org", {}, function(response) {
console.log(Object.keys(response));
console.log(response.result_code);
console.log(response.result_message);
console.log(response.result_output);
});
The above code simply returns Error:404
I wrote a code snippet that transfers a contact from one list to the other if they exist in the system. If they don't exist, it creates a new contact and adds them to the system. This code snippet doesn't work though.