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:----RZxeLq6HZr5+uD5IngBn8tCHdulGJ/znzjnrE/BV8tFaGhw5mHA4FKPiozy0dQWo+Y/6sG7o6d/Tl7kpIyau0w5wA6Q2HyX/KfnxvaQzp/mRabQHTEnCQKZM6I69xgeJP+sr1MHa6ZG6pWkLKJ1j4ni3/E4Gohg/LfjaJZ4jeu3C2HiLyx9u6ft77MYCwcoP1i+ySFENKMtQ+4iHYCNBHYk6yYfwvTxDWbT4xV0jUlNdfvIgTfLZMGRCAT28KmymFKiu51voBLmsvuOAVeanqSSNymQz5QjS4AcF3l1yN/4prKY/eYGrP8Q5WZHUq+A2sb8y9CykvyApDsdNRawPnOkTo4IgkvOz+BXa1ip3rcuJp6599Y6cHvdI4QtsA5HlH7ugAXQskJ4gUC/ph+qYMuysn3TVZ4JoGLFJBTrtzWy3aKZyHcm7+iFsUFDAuvjscZldX2c0MWupW27dT7+vVjzjR0WJl2un0rVyoPSxroGdgAioFQH0JnD4QpaRGFWX81VqkfqP23nuvlY/D39V5wZVJEE2eQEhz9va06RZ9zmjQz3oxKr6F78SqSHddbLVcwdX6FnPtx9x0ZL5/uagWJrK8oGa09dKFPNGbdhEMt1F1jCcxUI3mw/OjgNE4+Gzx24Ce9FTITQjJdvuihSJx7/DGHHUcf80MeGp5epH8Wg=----ATTACHMENT:----MjQ5MDE4NDc4OTE2ODA2OSA4MjE4Nzg3MTk5OTEyNjMgOTY5NzA4MDA5OTk1NzUzNw==