/** * Service Call: GetUserAgreement * @param GetUserAgreementRequest $getUserAgreementRequest * @return GetUserAgreementResponse * @throws APIException */ public function GetUserAgreement($getUserAgreementRequest, $apiUsername = null) { $ret = new GetUserAgreementResponse(); $resp = $this->call("GetUserAgreement", $getUserAgreementRequest, $apiUsername); $ret->init(PPUtils::nvpToMap($resp)); return $ret; }
/** * Service Call: GetUserAgreement * @param GetUserAgreementRequest $getUserAgreementRequest * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return GetUserAgreementResponse * @throws APIException */ public function GetUserAgreement($getUserAgreementRequest, $apiCredential = NULL) { $ret = new GetUserAgreementResponse(); $apiContext = new PPApiContext($this->config); $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $resp = $this->call('AdaptiveAccounts', 'GetUserAgreement', $getUserAgreementRequest, $apiContext, $handlers); $ret->init(PPUtils::nvpToMap($resp)); return $ret; }