getOAuthService(); $data = array(); $url = $this->getConf('baseurl') . '/api/v1/me.json'; $raw = $oauth->request($url); $result = json_decode($raw, true); $data['user'] = 'doorkeeper-' . $result['id']; $data['name'] = 'doorkeeper-' . $result['id']; $data['mail'] = $result['email']; return $data; } /** @inheritDoc */ public function getLabel() { return 'Doorkeeper'; } /** @inheritDoc */ public function getColor() { return '#b64145'; } }