/**
* 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;
}