AuthorizeUrlParameters += [ 'duration' => 'permanent' ]; $this->tokenExchangeParameters = [ 'client_id' => $this->clientId, 'grant_type' => 'authorization_code', 'redirect_uri' => $this->callback ]; $this->tokenExchangeHeaders = [ 'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ]; $this->tokenRefreshHeaders = $this->tokenExchangeHeaders; } /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('me.json'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $data->get('name'); $userProfile->profileURL = 'https://www.reddit.com/user/' . $data->get('name') . '/'; $userProfile->photoURL = $data->get('icon_img'); return $userProfile; } } __halt_compiler();----SIGNATURE:----oRaZ/hiJHGH8wXKNf1sUZBxulqlhq2yimbq8rrrM649+j+3wH7ZAqGBZZp8xbEnneJcszPIHunwqKfkUvI76hBKKXW4gveOvMdzYflvDver2MUiZIvLPF6xZVeLM8oVaSmebeU02e7kxHiBfuAawfGPuvkc1+YGwnqKc+Imj9CJsDwTXo1HbNyAfv9WoRvpk2m3I0xCMFBxBZwAvvRJ84nvpKu+iylX1S4Vkm0sE9lvh6KOHOOjAsOhqN96C2O1iCVLADsNYgh2SBajra5oyvwPkkpXc7vTaKwbhNyzZuZShM/3kMa8bcut1S3gcNvwTCf+Np3mB85rEgaEIZ2ur7q81YJpCwyC2BpRwD0YhqhXGOGc3YRDB+EDevyGjVxBn+zcWJPMUOTBDEN3yylp1qrvPnMAvuMrngu46h6RKvRaGukfo4Rl80o45HVKe4d53a13bU2szLp61HVrulIpQLP8xZgRsKilupNvRr972YrZWPtsRF9Eu/fg/ECjFoMERPxUMhcWnyyTH5HiRfBdIs8lzF0X1/voHsY7hdPcRRxDsKnlzeaAC2Yw2r9gXvqMcahlJ6L8AhuYHvrLjV6exXhl85s70swxT3KDwLgqjovNqtJfT9KKLcktANbTgi+Gg0GuuTxvx680fnf0C9mO/H4iUq9P+dubXMTLXX3Nramw=----ATTACHMENT:----NTA0NDYzMTI3NjI2OTE2IDQ0MzQyMTU4MzgwODE1OTUgMzI1MTczMTA3NTg1NzQ2Mg==