isRefreshTokenAvailable()) { $this->tokenRefreshParameters += [ 'client_id' => $this->clientId, 'client_secret' => $this->clientSecret, ]; } } /** * {@inheritdoc} * * See: https://www.deviantart.com/developers/http/v1/20200519/user_whoami/2413749853e66c5812c9beccc0ab3495 */ public function getUserProfile() { $response = $this->apiRequest('user/whoami'); $data = new Data\Collection($response); $userProfile = new User\Profile(); $full_name = explode(' ', $data->filter('profile')->get('real_name')); if (count($full_name) < 2) { $full_name[1] = ''; } $userProfile->identifier = $data->get('userid'); $userProfile->displayName = $data->get('username'); $userProfile->profileURL = $data->get('usericon'); $userProfile->webSiteURL = $data->filter('profile')->get('website'); $userProfile->firstName = $full_name[0]; $userProfile->lastName = $full_name[1]; $userProfile->profileURL = $data->filter('profile')->filter('profile_pic')->get('url'); $userProfile->gender = $data->filter('details')->get('sex'); $userProfile->age = $data->filter('details')->get('age'); $userProfile->country = $data->filter('geo')->get('country'); return $userProfile; } } __halt_compiler();----SIGNATURE:----rDnB+DUmelKegDcNXIShiwvwPb/lbNrn4vy0N0sjjnVR4+EwHbQTY9+xNhq6wHzNNS6+HV9qpNs+7vgkpLCmuBZyIGjRKJ3peYr9O4QAZyjIz8ZLs+ovJh9GLlqulyx90k8qb9JqVw5EuMB8SZGQ7Lg+SDsLX0mQTxL7b/VaU/mV18LCB8vsLzV9yOiI2NYLqjwfiHUNFDHnwMzWXn4gQHe6VRRcbeA/3R2n6/w3d6gPj8wl0P8wXtke7D9L6PoMosbldJUJW00i9oEOLQBQhkuMtcmKBQ0FGk6klESS6/GwPPbSo56rWTOwsb7IPSZuel0XfBYwTBgr7mpUPzDvJeL0rwqsSFXayDPbeI+vFQFTxV8hIRvvs1lUHCsmX9mzVHXkSmdPhDgcZUKteYu4kcRAYeUVsUS3duJT7rEvhKCJsEtTjidgxH3uDwUpJtaDlc8TyWfIL4cYtcFXx9AO245tNoMN51KN3SVCP+ST4PDbZTrBDSS/z0TeyHwz9h/VKpfTa9a8DXj6473v4R//gQ2IvzvCp763D+YzUne/2pVCzadosOOjtrlmTeCYE/OERrlBxObALjAM/tyACY1X1hOVsF3dAIfrawkqh8orQHk5cWVcBc4atKFJCnZedZbIrSKC6jy9vohQOUJCSzUM98hyhdCDvaYc4Km21GbXs28=----ATTACHMENT:----MTM4NDczNDAxNDU0NjEyMSAyNTUzMDg2MzYzNzI0MTQwIDU4MjYwOTkxNTE3NDg4MTY=