芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/fns/hybridauth/Provider/Disqus.php
apiRequestParameters = [ 'api_key' => $this->clientId, 'api_secret' => $this->clientSecret ]; } /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('users/details'); $data = new Data\Collection($response); if (!$data->filter('response')->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $data = $data->filter('response'); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $data->get('name'); $userProfile->description = $data->get('bio'); $userProfile->profileURL = $data->get('profileUrl'); $userProfile->email = $data->get('email'); $userProfile->region = $data->get('location'); $userProfile->description = $data->get('about'); $userProfile->photoURL = $data->filter('avatar')->get('permalink'); $userProfile->displayName = $userProfile->displayName ?: $data->get('username'); return $userProfile; } }