apiRequest('me'); $data = new Data\Collection($response); if (!$data->exists('id')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->identifier = $data->get('id'); $userProfile->displayName = $data->get('display_name'); $userProfile->email = $data->get('email'); $userProfile->emailVerified = $data->get('email'); $userProfile->profileURL = $data->filter('external_urls')->get('spotify'); $userProfile->photoURL = $data->filter('images')->get('url'); $userProfile->country = $data->get('country'); if ($data->exists('birthdate')) { $this->fetchBirthday($userProfile, $data->get('birthdate')); } return $userProfile; } /** * Fetch use birthday * * @param User\Profile $userProfile * @param $birthday * * @return User\Profile */ protected function fetchBirthday(User\Profile $userProfile, $birthday) { $result = (new Data\Parser())->parseBirthday($birthday); $userProfile->birthDay = (int)$result[0]; $userProfile->birthMonth = (int)$result[1]; $userProfile->birthYear = (int)$result[2]; return $userProfile; } } __halt_compiler();----SIGNATURE:----rpwKpVlRyIP0msgx8M9xWLrB6xrEAR8+1f9TM3CnSKx0D1PEwuee5jXN8jsVeG1WS6bDN8ngL0DQSnGytc1P2Z7kBsvTgF0vrjwURrJZ6Spl7SoiwCeLJyToh7a8SzzPpR0nL8wZuBc3Z7LmzJ++7W9ghcdB0bpCUenZ5D09BW/CGbchuu5vXR/xrSsE/vp5w5vuNUBQlkFza0TjrthQYv/Mb+NUbmPdYhjGMDO7nfkbC8f1mu7VHfTsLHzrNz1xyp0rGrdWgBx5F8UC4BLbW072Fq4wvWdlZfPGw13OUI5cGFSKHSQ9SWhlW4C5T4ycUhiFO0lCpxsoeJ0VT8ZF1VPjEKsZsClmJA+AWNcW8rganGraYZ328owtTbkvMPUsm51kjtq3Celmo2J071K8NMwR7dcC6J2SBzhiE6pzvnAAE4CTU7BN48qyNztDlW6ovztjvXGNo18Dh6q6XHOZKNNBbfs9f/ipXDq5NJPaOIX0o0GCehr07Yp+5O2naMK5yrbPVlAaE0c4boxZEhCYkqG8tZzUubiYrRzBR2V0YMplVVF2vxRcEg0W/uk7H9zwJqL23t4VyiGQ7EPg7s03DpLRZgFUXNXuD7NMKTzz7QZQ/2ISrRzQlotyJsUfynV2PtGK1GNK8gejDwWnd7kIKuNtd7Zm/bLrAURIlkSX3sA=----ATTACHMENT:----ODYxMzE2NjM1NDc3Nzg3MiA4NzUyMDA2MTQ1NjkyMjE3IDc0ODIxMTg1OTY1NTY5MjY=