src/UCRM/REST/Endpoints/Helpers/ClientHelper.php
public static function getByCustomAttribute(string $key, string $value): ClientCollection
    {
        // TODO: Determine if this is ALWAYS the case!
        $key = lcfirst($key);

        /** @var ClientCollection $clients */
        $clients = Client::get("", [], [ "customAttributeKey" => $key, "customAttributeValue" => $value ]);
        return new ClientCollection($clients->elements());
    }
public static function getByCustomAttribute(string $key, string $value): ClientCollection
    {
        // TODO: Determine if this is ALWAYS the case!
        $key = lcfirst($key);

        /** @var ClientCollection $clients */
        $clients = Client::get("", [], [ "customAttributeKey" => $key, "customAttributeValue" => $value ]);
        return new ClientCollection($clients->elements());
    }
public static function getByCustomAttribute ( string $ key , string $ value ) : ClientCollection { // TODO: Determine if this is ALWAYS the case! $ key = lcfirst ( $ key ) ; /** @var ClientCollection $clients */ $ clients = Client :: get ( "" , [ ] , [ "customAttributeKey" => $ key , "customAttributeValue" => $ value ] ) ; return new ClientCollection ( $ clients -> elements ( ) ) ; }
Sends an HTTP GET Request using the calling class's annotated information, for objects, given an Attribute pair.

@param string $key The Custom Attribute Key for which to search, will be converted to camel case as needed.
@param string $value The Custom Attribute Value for which to search.
@return ClientCollection Returns a collection of Clients matching the given criteria.

@throws \Exception
Sends an HTTP GET Request using the calling class s annotated information for objects given an Attribute pair .