public function get($path = null, $data = array(), array $options = array())
{
$defaults = array('type' => false);
return $this->send(__FUNCTION__, $path, $data, $options + $defaults);
}
/** * Requests a token of a particular type * * @param string $query * @return array parameters sent from the response body */ public function token($type, array $options = array()) { $defaults = array('params' => array('client_id', 'client_secret')); $options = array_merge_recursive($options, $defaults); $this->_parseParams($options); $url = $this->_config[$type]; $result = parent::get($url, $options['params']); return $result; }