IsraelOrtuno / pipedrive

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

Search users by email - missing trait? #116

Closed karol-bialkowski closed 3 years ago

karol-bialkowski commented 3 years ago

As the @deprecated param in the method ->users()->findByName($brandEmail, [ 'search_by_email' => 1, ]);

how we can search users (not persons) by email? The latest documentation says that we have to use find method: https://developers.pipedrive.com/docs/api/v1/Users#findUsersByName

but the find() method available only int param.

Maybe missing Searches trait in the Users class?

Example: products class:

class Products extends Resource
{
    use FindsByName,
        Searches,
        ListsAttachedFiles,
        ListsDeals,
        ListsPermittedUsers;

and the Users class

    use FindsByName,
        ListsActivities,
        ListsFollowers,
        ListsPermittedUsers,
        ListsUpdates;