示例#1
0
 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);
 }
示例#2
0
 public function access($code, $options = array())
 {
     // Add Api-Key header
     $options['header'] = 'Api-Key: ' . $this->client_id;
     return parent::access($code, $options);
 }