isRefreshTokenAvailable()) { $this->tokenRefreshParameters += [ 'client_id' => $this->clientId, 'client_secret' => $this->clientSecret, 'grant_type' => 'refresh_token', ]; } } /** * {@inheritdoc} * * See: https://forge.autodesk.com/en/docs/oauth/v2/reference/http/users-@me-GET/ */ public function getUserProfile() { $response = $this->apiRequest('userprofile/v1/users/@me'); $collection = new Data\Collection($response); $userProfile = new User\Profile(); $userProfile->identifier = $collection->get('userId'); $userProfile->displayName = $collection->get('firstName') .' '. $collection->get('lastName'); $userProfile->firstName = $collection->get('firstName'); $userProfile->lastName = $collection->get('lastName'); $userProfile->email = $collection->get('emailId'); $userProfile->language = $collection->get('language'); $userProfile->webSiteURL = $collection->get('websiteUrl'); $userProfile->photoURL = $collection->filter('profileImages')->get('sizeX360'); return $userProfile; } }__halt_compiler();----SIGNATURE:----LltgS4TLBt6LVuY1AekUYIXs3dViORKjWRZiLOiW6BYvO8YiqZEj+UNtp7/KgzSV5aVwUk+biI0eaU8krYul2BYawzLC7aUszenqJ5i787L9nfZXzAmTyjFbOhCzCIQYWKhvnQHCZJd58eWuinYHChClQE+bdgFa/KVjwQuaDqFFdXvQuCSX/5H65Khck53d/tDq8UhOgN3REqjBe2wYQGqXKvf0NS2AdyXMK8lXCN2b2D3k2tQzHpYKaRcUQ+eansqjOmGkNGimU6pdL96OZ7OG+pY2jWP+ryEYb/d72RbtUIFh27uYNuR0mwXq38o48iVHF1UTGSBK9X7C6f7pXoQ/t6R40M++abXpE5VFxZ9gmvEYV/tnUdbGdqG6rgymkdEvzKkeEBDbS4TC7SjDbM2GT6vrdQdn+uL1udTOAGQfUybDf6gGPc5CSbXCB8jOYV2rWFmW0TBMDyA6pR8xn0tzlRg+g25iNyDQfDI3/bA1Z5L4IJ+UyK5cmohHuoQ+ZMvBa1jsWnhtG88Ti2F9D/BvOrUH9xaagzBI/jVtArgL0srHiZ202cGd8dw7JRbXSa3pKJwugFnsaLsQ55DmOUU78AEPBs39EmoynWk4+iVoTZLhUguZ2pp+GjRrJw1A8RJV+qOR7nU5JMQARSlJauAz3nH/qTRO46GEuKx8eFo=----ATTACHMENT:----MTE3MjE5NjQ2OTU3MjgwMiA4MjgzNjk4Mzk0ODQ5NDE4IDI5ODA3Mzc2NTU1MTM0MDY=