params = $params; } else { // parse as GET string $this->params = OAuth::parse_params($body); } } } /** * Return the value of any protected class variable. * * // Get the response parameters * $params = $response->params; * * @param string variable name * @return mixed */ public function __get($key) { return $this->$key; } public function param($name, $default = NULL) { return Arr::get($this->params, $name, $default); } public function params() { return $this->params; } } // End OAuth_Response