clearbit / clearbit-node

Node library for querying the Clearbit business intelligence APIs
https://clearbit.com/docs
MIT License
69 stars 35 forks source link

adds ability to search for an email by person id, new object PersonId #18

Closed domthewop closed 8 years ago

domthewop commented 8 years ago

Quick hack to make the API endpoint of https://prospector.clearbit.com/v1/people/:id/email available in the client library. I find it more useful to query this endpoint by ID to get emails than to use the base Prospector endpoint with additional parameters.

maccman commented 8 years ago

Can't you do (new Person({id: '123'})).email() ?

domthewop commented 8 years ago

I can get behind that solution. Possibly needs better documentation for that use case?