src/Support/Http/GuzzleClient.php
public static function create($baseUrl, $username, $password, $organisationToken = null, $accessToken = null)
    {
        $client = new GuzzleHttpClient([
            'base_url' => $baseUrl,
            'defaults' => [
                'headers'         => [
                    'Content-Type' => 'application/json',
                    'User-Agent'   => 'ordercloud-php-v' . Ordercloud::VERSION,
                ],
                'auth'            => [$username, $password],
                'allow_redirects' => false,
                'config' =>[
                    'curl' => [
                        'CURLOPT_DNS_USE_GLOBAL_CACHE' => false
                        ]
                ]

            ],
        ]);

        return new static($client, $organisationToken, $accessToken);
    }
public static function create($baseUrl, $username, $password, $organisationToken = null, $accessToken = null)
    {
        $client = new GuzzleHttpClient([
            'base_url' => $baseUrl,
            'defaults' => [
                'headers'         => [
                    'Content-Type' => 'application/json',
                    'User-Agent'   => 'ordercloud-php-v' . Ordercloud::VERSION,
                ],
                'auth'            => [$username, $password],
                'allow_redirects' => false,
                'config' =>[
                    'curl' => [
                        'CURLOPT_DNS_USE_GLOBAL_CACHE' => false
                        ]
                ]

            ],
        ]);

        return new static($client, $organisationToken, $accessToken);
    }
@param string      $baseUrl
@param string      $username
@param string      $password
@param string|null $organisationToken
@param string|null $accessToken

@return static