ActiveCampaign / activecampaign-api-nodejs

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

Ids all is no longer working #41

Closed wyattbenno777 closed 6 years ago

wyattbenno777 commented 7 years ago

var contacts_get = ac.api("contact/list?ids=all", {}); contacts_get.then(function(result) { // successful request console.log("result is ", result); }, function(result) { // request error });

Ids all is no longer working, this returns an empty object.

cristiangrama commented 6 years ago

@wyattbenno777 Can you provide the full response?

wyattbenno777 commented 6 years ago

Hi. I tried this again.

This is the JSON response. For this url.

https://ours.api-us1.com/admin/api.php?api_key=our_key&api_action=contact_list&api_output=json&ids=all

With id it does work with ids=all it does not.

result_code | 0 result_message | "Failed: Nothing is returned" result_output | "json"

mthommes commented 6 years ago

Hello! The contact_list method will only return contacts that are associated with at least one list. Can you confirm that the missing contacts in your response already meet that criteria? In other words, since no contacts are returned I would suspect that you have no contacts that are associated with at least one list. If that's not the issue, then we can escalate this issue further. Thank you!

wyattbenno777 commented 6 years ago

@mthommes That did it. Thank you!