public function access($code, $options = array()) { if ($code === null) { throw new Exception(array('message' => 'Expected Authorization Code from ' . ucfirst($this->name) . ' is missing')); } return parent::access($code, $options); }
public function access($code, $options = array()) { // Add Api-Key header $options['header'] = 'Api-Key: ' . $this->client_id; return parent::access($code, $options); }