src/Factory.php
public static function getUserClient($organization = null, $apiKey = null, $options = [])
    {
        $baseUrl = BaseClient::DEFAULT_API_BASE_URL;

        //bc compability, when first param was $options
        if (\is_array($organization)) {
            $options = $organization;
            $organization = null;
            $apiKey = null;
        }
        if (isset($options[self::API_BASE_URL])) {
            $baseUrl = $options[self::API_BASE_URL];
        }

        $client = self::getGuzzleClient($baseUrl, $options);

        return new UserClient($client, $organization, $apiKey);
    }
public static function getUserClient($organization = null, $apiKey = null, $options = [])
    {
        $baseUrl = BaseClient::DEFAULT_API_BASE_URL;

        //bc compability, when first param was $options
        if (\is_array($organization)) {
            $options = $organization;
            $organization = null;
            $apiKey = null;
        }
        if (isset($options[self::API_BASE_URL])) {
            $baseUrl = $options[self::API_BASE_URL];
        }

        $client = self::getGuzzleClient($baseUrl, $options);

        return new UserClient($client, $organization, $apiKey);
    }
public static function getUserClient ( $ organization = null , $ apiKey = null , $ options = [ ] ) { $ baseUrl = BaseClient :: DEFAULT_API_BASE_URL ; //bc compability, when first param was $options if ( \ is_array ( $ organization ) ) { $ options = $ organization ; $ organization = null ; $ apiKey = null ; } if ( isset ( $ options [ self :: API_BASE_URL ] ) ) { $ baseUrl = $ options [ self :: API_BASE_URL ] ; } $ client = self :: getGuzzleClient ( $ baseUrl , $ options ) ; return new UserClient ( $ client , $ organization , $ apiKey ) ; }
Return a user client.

@param string|null|array $organization
@param string|null       $apiKey       API key
@param array             $options      Options like api_base_url or proxy

@throws \RuntimeException

@return UserClient
Return a user client .