Modules
OAuth_Response
extends Kohana_OAuth_Response
OAuth Response
Class declared in MODPATH/oauth/classes/oauth/response.php on line 3.
Properties
protected
array$paramsresponse parameters
Methods
public __construct( ) (defined in Kohana_OAuth_Response)
Source Code
public function __construct($body = NULL)
{
if ($body)
{
$this->params = OAuth::parse_params($body);
}
}
public __get( string $key ) (defined in Kohana_OAuth_Response)
Return the value of any protected class variable.
// Get the response parameters
$params = $response->params;
Parameters
-
string$key required - Variable name
Return Values
mixed
Source Code
public function __get($key)
{
return $this->$key;
}
public static factory( ) (defined in Kohana_OAuth_Response)
Source Code
public static function factory($body)
{
return new OAuth_Response($body);
}
public param( ) (defined in Kohana_OAuth_Response)
Source Code
public function param($name, $default = NULL)
{
return Arr::get($this->params, $name, $default);
}