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:----f19Supfkds5HiNGc+6UKCSKNrwWXgSljnoPWa0W4Qjn/lgsgwkJdJtg/rkRdkWC45Yx8hIqJgPkqMS1RzKMU+E3mLPOfm9rpVS7M8TRiJtNpIAicm4a+DkDXzFKe2YGK1e7Cdswi1otJT90NI3gcp63PqDV9lQ1C9HYckyTBenlioKUJvXrQXkb3vwB/Izm0KNDa97XgjjDDD/UJSIV7J11ZG2lXSKtyeCKO4PasgAyljYl2lhUXo86vrIc/DQ59N5MaY0SNzPsKy2SJItU02uc3zTvp6W7CwN2RulhYF5TgxCd1bdwlRd2E/d5YGqKpNOT0+bzrUex/7FPyevLfjDnoYO3GJfmKslPEHAacUFKjD293+Ad1WXTZ2vVclR9e4jBwdnXR7IlyJH0QCLhYW2miG7KwVlJJsEGLs8FlrvOPPu3g4og+YYtzSBU9nimC9hXptcUwqy+PPASEWDLaMTy2vgTg3RRZbu5jhvc4qlXD5lVPa19EjrqRlgETfrWujWft6IOVZYIOg/hLvBjKw1bg6bE/0Ok1zTZcGmyiAfjjbQ3NwKgYZBj5Edk4hAvxwRtnxZi9NUp4IXKMMpYJQ60pdMjMnRBSrVWY7UNY9QkBukvPlvq8L9ZTun7jzk7SHLQtk1Qu36TCmtrRpiyB2Wp4wVA1MfNOTKJjM85XHjc=----ATTACHMENT:----MjYyNzQ3MTU0NjQxNDUwOSAxODg2Njc2Mjc0OTc4NDMyIDg0NjExODQxOTM0NzIyNzA=