Esempio n. 1
0
 /**
  * Configure the request parameters as specified in the configuration file.
  * When processing additions, if a parameter value exists, it will not be
  * overwritten.
  *
  * @param	array	an associative array of request parameters
  * @return	array
  */
 protected function _configure_parameters($parms)
 {
     $parms = parent::_configure_parameters($parms);
     $name = 'alt';
     $temp = Arr::get($parms, $name);
     if (empty($temp)) {
         $parms[$name] = $this->_format;
     }
     return $parms;
 }
Esempio n. 2
0
 /**
  * Configure the request parameters as specified in the configuration file.
  * When processing additions, if a parameter value exists, it will not be
  * overwritten.
  *
  * @param	array	an associative array of request parameters
  * @return	array
  */
 protected function _configure_parameters($parms)
 {
     $parms = parent::_configure_parameters($parms);
     if (!$this->_send_accept_header) {
         $name = 'type';
         $temp = Arr::get($parms, $name);
         if (empty($temp)) {
             $parms[$name] = $this->_format;
         }
     }
     return $parms;
 }
Esempio n. 3
0
 /**
  * Configure the request parameters as specified in the configuration file.
  * When processing additions, if a parameter value exists, it will not be
  * overwritten.
  *
  * @param	array	an associative array of request parameters
  * @return	array
  */
 protected function _configure_parameters($parms)
 {
     $parms = parent::_configure_parameters($parms);
     // Set the access key
     if ($this->is_valid_token(NULL, TRUE)) {
         $access_token = $this->_token->key;
         $name = 'access_token';
         $temp = Arr::get($parms, $name);
         if (empty($temp)) {
             $parms[$name] = $access_token;
         }
     }
     return $parms;
 }