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:----YPiop82ufIZkC0YY8n0koqWq+1dCqG0y1E6c78ZaKt2Jw6itzG30Cz9xGJqkgRIe5+BPcDdOJYCe2l+NAtcrzRcDW1f0fvxbhde2njwveq0al91HHC8DPX9smo7RnYWZHbkU34+2lcfqfK+V25B1OeRB03NRsGHmjVq1hflxYwHLvGmsDcRYAYVB4I7nhzFxCWoe8vzWBQ7jibXQWEN4FntWVs481hp1/8NV90TSfBQeiwsi3dqRbWYSBVovr6WEYuIoA8Lz6MQ5JoSIAkff6M9Ife/XH+BqX5NsewrYrWGHlYMCyZsWN51qySlnlPKZw7jXo2oZd2Ud4xLO5VVcBgmkuRfCzFX8e9rBCOmLti0vAuAO4d7iExOlLKupP1zdUZjN+aJUWxXlvx7z/xf/Fb5MnERbI0jtvAyAC3y9zyYfe8DyX/kHzhpiLefaAysq1OAqgolxar9vUyduztuDbm/3WmTBd/KIkulj+QEUYgNofNWysG6j3QrPavW/wr0E0jH5qXHpYeK9sEHzZtqYYsrMrP9s/YZpdecgq5y6RWmW7ayEas6R2ApE2qj/gFlxbmTccDV3o0NmFQXbyfDro2dHjCMAFbFzZBCaZuCHGJMdLWaFSpev8/FE/BNDVJLm4FqKNXybAu13prBJOej57+R5rmu8DmfBJtikGowDhGU=----ATTACHMENT:----MjkwNDgyMzM4OTg5OTU4NiAxMzU4MTAxODkyNjIzMDU5IDgyMjIyOTI5NTg2NzgzNDc=