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:----neQEp1W9ribsXpBsmu2W7Z98/Fw2WKE7lUA8YQoHrfHT2N7IV9pOFs9nVteuJc2/LjjRoQGhZEUHIQvOaeFDBtUIQHjbnXBEVTWsmitpjBI+f8qwe5nUPDrwa1sUK5asT+vAEA6OjvWNaHQOMrtjsj+6EJxe9tKbsl7A+9eNRuKqocV/nvqzS0PVarAVxCFzCReb7kLr/GM/GfQClB+P1Q5KOsyE9aw77Taav93vBJ5IsaS9KW4jSaCvtY0ZnXLjP0pL22z+B/5hJuQ3b243vqqAhvCYuamsGGlaAGpTsGyaYaoAlX2VYfraHNdh9xJmVtHDlyBvpUkeKebA/Vw4UVON+rNXIQ4Yxa/01Rxra8pV39V4DG2Y0d77QlW70tQJQAGVhxydaQJwzBGLrk8v/H3Uu2qTCEtPR8stLyL6qnXT1dKLx0OunNcCSlvXcKffPnWpCDc6mi/iUNIWmvpAnUEFCCajiNXBZJpWzellEDmNEHQ4wn0W3XJkTwTOmCDTaIJrZpgpX9dvwChUKCtKJZ1XMmlPOqkTO3EY0WLylKk4wUJBdeB08vnZjnY3HnmVWAQvY7OUaLarXAphionQtnMQxKQVrz9KywYtqQOueZyDYJXivuKWXddsGNTuvTkvWHLjt9tXRQ77UTMchZVY4SqiUrCq8/+99sTn4md1P/c=----ATTACHMENT:----NTM0OTY4NjgwNjc3NTI2NCAxMTU1NzA0MjA2NTQ5NjgwIDkwMjc2MzgwMTA0NzI0NDU=