self::REQUEST_SCHEME_POSTBODY, 'requestMethod' => self::POST, 'signatureMethod' => 'HMAC-SHA1', 'version' => '1.0', ); /** * setConfig * * @param string $key * @param mixed $value * @return object OAuth */ public function setConfig($key, $value = null) { if (is_array($key)) { $this->_config = array_merge($this->_config, $key); } else { $this->_config[$key] = $value; } return $this; } /** * getConfig * * @param string $key * @return mixed */ public function getConfig($key = null) { if (!$key) { return $this->_config; } return $this->_config[$key]; } }