public function __construct(array $config = [])
{
$this->setCommonDefaults($config);
$config += ['accessToken' => null, 'authHttpHandler' => null, 'httpHandler' => null, 'httpOptions' => [], 'shouldSignRequest' => true];
$this->accessToken = $config['accessToken'];
$this->httpHandler = $config['httpHandler'] ?: HttpHandlerFactory::build();
$this->authHttpHandler = $config['authHttpHandler'] ?: $this->httpHandler;
$this->httpOptions = $config['httpOptions'];
$this->shouldSignRequest = $config['shouldSignRequest'];
}