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:----oYVDRvjDjMH/IZUC5hZ2qOW3C/QUN5Tl7Xz0elxfev7Uw+Su7P1gUe5d2WINOliLliPCyX47RySxdAHyzOnGlAdc/2it48Qu6RTjnmnxOcrqqehhjJk9dqAxWvmA+wjJaBD8r+ACO//4fZ67oBnNSBu66rfaeubCrDYpL2FO8W1g6UXlpSG/QsXGTY8Gj0Mr0F4L2AS9ZDNX9qPc8b2oJH9fgx1b7WzTxIvlVGCURVdvGpYuNbtoHNaST0uz55B1ukFIIaN4clvpHEvc9mCM+BhBBXPCnH0aheTWktG1HmYFankhqIEQBy+xmCFXPdonfHVEaW7BfAsstbrzgkFLhAlwC57k4zLHyucEJduY1HGy9gRBnwY4Pq/0xors3PINe7bNmXSLOsTlk2bweONrizRQeyObphz/2SWdtzZ1pxV2CCsOGi9XQvu5Uh8eXjzegbxFcwNtplFuXMGXoL9CF3SV8hDOE+yABEyjNvtrL2y8DvhYLSaTaOfj7jTWm+Pwo9n1TVp3aM6EdSWQ+//c0KKuMLWVR+CpKG+mLL56avfyokAt8KQBHzGPzZ1z8msZyrmDqjYnyU6Au//AkVjWpIFgJpQPXFXLAzY8EuKle8t9l+VqP1wtMpkFDMHZhNTEmYAjo0A7m6KTlqv4rB9ZSOGQEo3QKvt/lEgAU3eYJYU=----ATTACHMENT:----NjMzMDY0NTEwMzAxNDY2IDQ2OTIzMTA0NzM0MDI1MTIgMjEzMDg4MzQ2NTYxNzk2MQ==