IsraelOrtuno / pipedrive

Complete Pipedrive API client for PHP
MIT License
166 stars 58 forks source link

Support for find endpoint on Persons #9

Closed casconed closed 8 years ago

casconed commented 8 years ago

Persons has a find endpoint: api.pipedrive.com/v1/persons/find that allows a text search of name or email. The find endpoint in the generic Resource only allows find by id. Is there a way to call Persons::find?

IsraelOrtuno commented 8 years ago

You are right, that find method is not implemented. I am going to add it today.

The current find method will be replaced by get probably. Let me have a look and consider the impact and will get back to you after pushing.

IsraelOrtuno commented 8 years ago

There is a method called findByName. Is this what you are looking for?

@casconed

IsraelOrtuno commented 8 years ago

ping @casconed

casconed commented 8 years ago

I think that will work - I just need to verify that the search_by_email option is supported.

casconed commented 8 years ago

Works! Thanks!