public function authrep($appId, $appKey = null, $usage = null, $userId = null, $object = null, $no_body = null, $serviceId = null)
{
$url = "http://" . $this->getHost() . "/transactions/authrep.xml";
$params = array('provider_key' => $this->getProviderKey(), 'app_id' => $appId);
if ($appKey) {
$params['app_key'] = $appKey;
}
if ($userId) {
$params['user_id'] = $userId;
}
if ($object) {
$params['object'] = $object;
}
if ($usage) {
$params['usage'] = $usage;
}
if ($no_body) {
$params['no_body'] = $no_body;
}
if ($serviceId) {
$params['service_id'] = $serviceId;
}
$httpResponse = $this->httpClient->get($url, $params);
if (self::isHttpSuccess($httpResponse)) {
return $this->buildAuthorizeResponse($httpResponse->body);
} else {
return $this->processError($httpResponse);
}
}