ActiveCampaign / activecampaign-api-nodejs

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

add view_email to whitelist #27

Closed fishhelper closed 7 years ago

fishhelper commented 8 years ago

Add the contact_view_email API to the white list so that the URL string "contact/view/email" is accepted.

mthommes commented 8 years ago

Hello! You can fetch a single contact using their email address by doing:

ac.api("contact/view?email=test@test.com", {});

This is a cleaner approach because it doesn't repeat the word "email" (which this change would allow): ac.api("contact/view/email?email=test@test.com", {});

If we can help further with this, just let us know! 😃