Sets basic parameters to request.
963022
public function addBaseParams()
    {
        $order = $this->getOrder();
        $config = $this->getPayPalConfig();
        $basket = $this->getBasket();
        $session = $this->getSession();
        $lang = $this->getLang();
        $request = $this->getRequest();

        $request->setParameter("TOKEN", $session->getVariable("oepaypal-token"));
        $request->setParameter("PAYERID", $session->getVariable("oepaypal-payerId"));

        $request->setParameter("PAYMENTREQUEST_0_PAYMENTACTION", $this->getTransactionMode());
        $request->setParameter("PAYMENTREQUEST_0_AMT", $this->formatFloat($basket->getPrice()->getBruttoPrice()));
        $request->setParameter("PAYMENTREQUEST_0_CURRENCYCODE", $basket->getBasketCurrency()->name);
        // IPN notify URL for PayPal
        if (!$config->suppressIPNCallbackUrl()) {
            $request->setParameter("PAYMENTREQUEST_0_NOTIFYURL", $config->getIPNCallbackUrl());
        }   

        // payment description
        $subj = sprintf($lang->translateString("OEPAYPAL_ORDER_CONF_SUBJECT"), $order->oxorder__oxordernr->value);
        $request->setParameter("PAYMENTREQUEST_0_DESC", $subj);
        $request->setParameter("PAYMENTREQUEST_0_CUSTOM", $subj);

        // Please do not change this place.
        // It is important to guarantee the future development of this OXID eShop extension and to keep it free of charge.
        // Thanks!
        $request->setParameter("BUTTONSOURCE", $config->getPartnerCode());
    }
583598
def set_params(self, **params):
        
        if self._solr_locked:
            raise Exception("Query already executed, no changes can be made."
                            "%s %s" % (self._solr_query, self._solr_params)
                            )
        self._solr_params.update(params)
299665
def set_parameter_values(self, values):
        
        req = rest_pb2.BulkSetParameterValueRequest()
        for key in values:
            item = req.request.add()
            item.id.MergeFrom(_build_named_object_id(key))
            item.value.MergeFrom(_build_value_proto(values[key]))
        url = '/processors/{}/{}/parameters/mset'.format(
            self._instance, self._processor)
        self._client.post_proto(url, data=req.SerializeToString())
918063
private void addPostParams(final Request request) {
        if (phoneNumber != null) {
            request.addPostParam("PhoneNumber", phoneNumber.toString());
        }

        if (friendlyName != null) {
            request.addPostParam("FriendlyName", friendlyName);
        }

        if (callDelay != null) {
            request.addPostParam("CallDelay", callDelay.toString());
        }

        if (extension != null) {
            request.addPostParam("Extension", extension);
        }

        if (statusCallback != null) {
            request.addPostParam("StatusCallback", statusCallback.toString());
        }

        if (statusCallbackMethod != null) {
            request.addPostParam("StatusCallbackMethod", statusCallbackMethod.toString());
        }
    }
512013
def putParamset(self, remote, address, paramset, value):
        """"""
        if self._server is not None:
            return self._server.putParamset(remote, address, paramset, value)
187082
def set_http_request(self, http_request):
        """"""
        self._http_request = http_request
        if 'HTTP_LTI_USER_ID' in http_request.META:
            try:
                authority = http_request.META['HTTP_LTI_TOOL_CONSUMER_INSTANCE_GUID']
            except (AttributeError, KeyError):
                authority = 'unknown_lti_consumer_instance'
            self.set_effective_agent_id(Id(
                authority=authority,
                namespace='agent.Agent',
                identifier=http_request.META['HTTP_LTI_USER_ID']))
138371
def set_param(self, key, value):
        
        self.__dict__[key] = value
        self._parameters[key] = value
898412
private function setFinalParameters()
    {
        // Sometimes we may use tblist  for the same page for different url
        // (i.e ajax) so on initiation we need to check the url if set
        // manually. and URL must be the same with the actual url.
        if (!$this->baseURL || Request::url() == $this->baseURL)
        {
            $this->finalParameters = array_merge($this->requestParameters, $this->parameters);
        }
        else
        {
            $this->finalParameters = $this->parameters;
        }
    }
401565
def _set_parameters(self, parameters):
        """"""
        for theta in self.variables['theta']:
            val = 1.0
            # TODO: improve approach for initializing parameters.
            if parameters is not None:
                if theta.name in parameters:
                    val = parameters[theta.name]
            # Add parameter.
            
            self.link_parameters(Param(theta.name, val, None))
1208706
public static void setupRequestParameters(final HttpServletRequest request) {

		// Check already processed
		if (request.getAttribute(REQUEST_PROCESSED_KEY) != null) {
			return;
		}

		Map<String, String[]> parameters = new HashMap<>();
		Map<String, FileItem[]> files = new HashMap<>();

		extractParameterMap(request, parameters, files);

		request.setAttribute(REQUEST_PROCESSED_KEY, "Y");
		request.setAttribute(REQUEST_PARAMETERS_KEY, Collections.unmodifiableMap(parameters));
		request.setAttribute(REQUEST_FILES_KEY, Collections.unmodifiableMap(files));
	}
490920
def request(self, method, url, url_params=empty.dict, headers=empty.dict, timeout=None, **params):
        """"""
        raise NotImplementedError("Concrete services must define the request method")
230931
def init(base_url, username=None, password=None, verify=True):
    """"""
    handler = RequestHandler(base_url, username, password, verify)
    set_default_request_handler(handler)
    return handler
26211
def set_run_params(self, **run_params):
        """"""
        self.run_params.update(run_params)
        self.check_run_params()
        self._backend.set_run_params(**run_params)
1304012
def set_request(self, r):
        
        for k in self.environments.keys():
            self.environments[k].globals['REQUEST'] = r
1252051
def _make_request(self, conf, post_params={}):
        """"""
        endpoint, requires_auth = conf

        # setup the url and the request objects
        url = '%s%s.php' % (self.api_url, endpoint)
        log.debug('Setting url to %s' % url)
        request = urllib2.Request(url)

        # tack on authentication if needed
        log.debug('Post params: %s' % post_params)
        if requires_auth:
            post_params.update({
                'user': self.username,
                'pass': self.password
            })

        # url encode all parameters
        data = urlencode(post_params).encode('utf-8')

        # gimme some bitcoins!
        try:
            log.debug('Requesting data from %s' % url)
            response = urllib2.urlopen(request, data)
            return json.loads(response.read())
        except urllib2.URLError as e:
            log.debug('Full error: %s' % e)
            if hasattr(e, 'reason'):
                self.log.error('Could not reach host. Reason: %s' % e.reason)
            elif hasattr(e, 'code'):
                self.log.error('Could not fulfill request. Error Code: %s' % e.code)
            return None
1210473
protected function prepareRequest(): void
    {
        // HTTP method
        $method = Request::getMethod();
        $this->method = strtoupper($method);

        // get path
        // %module% / %controller% / %id% / %relation% / %id%
        $path = Router::getCleanUri();

        $this->params = explode('/', rtrim($path, '/'));

        // module
        $this->module = array_shift($this->params);

        // controller
        $this->controller = array_shift($this->params);

        $data = Request::getParams();

        unset($data['_method'], $data['_module'], $data['_controller']);

        $this->data = array_merge($data, $this->data);

        $primary = $this->crud->getPrimaryKey();

        $this->primary = array_intersect_key($this->data, array_flip($primary));
    }
1372507
private void addPostParams(final Request request) {
        if (publicKey != null) {
            request.addPostParam("PublicKey", publicKey.toString());
        }

        if (friendlyName != null) {
            request.addPostParam("FriendlyName", friendlyName);
        }

        if (accountSid != null) {
            request.addPostParam("AccountSid", accountSid);
        }
    }