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:----DzwcjpoxMScGRPoOFRLOhMeQNSmiJoPC//ZpUzsi1YMDNqJE60hwd0I2YmnEPGhR2CD0Ob69SsmnKwpaR0TsgUN0SBeej5C42MXpV3Ug+3dcek+f81TH8Cn8RYGxSyCprTZcRLOptxZRZkEB226qNHPuQK6c1y+ESKQuiBGo+wxz8b2Y87xgVA9v2gl8pDB4JXpP3RFhUD8ShGI3QLR2ikvzA/82hyWY/L0ixMh1W6LLB7hzRUbCsoRqLVflVv0trHxPPANj/64sRkWA615ksoHYgvDCoOEO5ywE6EJMJ9jqlSeHt11vLzpqeIWBoMVJ5VUD7XxK2tjrZq5ebEYSwk49K9q5bmaQxzg4a14kgv7FNW+M8OqEQw2TmzNazIIeomPmf4hDZNEtSZgouYBaqpvTK/j7iShypLw1MdsBTx64d53qQRL0pPY3cECRlKqWccpWYGoXI0LclUiGKGkBGOB/nuyNdNsQXmF4LYPkLtYDu8m+4/BwJfHny0ILku4tYWAwoH1+vGn5tJekuGfvWHLhIPErjJI0iKt5Hm0XNLeC9zFS6wd3R1ZGuvs1oxMgYMkNRl1i+znEkTguLWz8oCqNYyslPYBfeijSYWBRd2n+Abtm4ceJucJ1nCkL/j0nnrVJimTNulcJtayejRWeWhtlS2C0TrtXwEgo5ToxiCQ=----ATTACHMENT:----MTgxMDcwMDAwMDc3ODEyMCA2OTEyMjM3MTEyOTM3NTA1IDUyNzI2MDc2MDcxNjMyMzg=