private function _getAuthorization()
{
if ($this->_useClientCredentials) {
return ['user' => $this->_config->getClientId(), 'password' => $this->_config->getClientSecret()];
} else {
if ($this->_config->isAccessToken()) {
return ['token' => $this->_config->getAccessToken()];
} else {
return ['user' => $this->_config->getPublicKey(), 'password' => $this->_config->getPrivateKey()];
}
}
}