public static function search($email, ClientInterface $client = null)
    {

        $response = (new static([], $client))
            ->getClient()
            ->setResourceKey(static::RESOURCE_NAME)
            ->send('/v1/customers/search', 'GET', ['email' => $email]);

        return static::fromArray($response, $client);
    }
public static function search($email, ClientInterface $client = null)
    {

        $response = (new static([], $client))
            ->getClient()
            ->setResourceKey(static::RESOURCE_NAME)
            ->send('/v1/customers/search', 'GET', ['email' => $email]);

        return static::fromArray($response, $client);
    }
public static function search ( $ email , ClientInterface $ client = null ) { $ response = ( new static ( [ ] , $ client ) ) -> getClient ( ) -> setResourceKey ( static :: RESOURCE_NAME ) -> send ( '/v1/customers/search' , 'GET' , [ 'email' => $ email ] ) ; return static :: fromArray ( $ response , $ client ) ; }
Search for Customers
@param  string                $email
@param  ClientInterface|null $client
@return Customers
Search for Customers