1 | <?php |
||
18 | class AutoDesk extends OAuth2 |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | protected $scope = 'data:read'; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected $apiBaseUrl = 'https://developer.api.autodesk.com/'; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected $authorizeUrl |
||
34 | = 'https://developer.api.autodesk.com/authentication/v1/authorize'; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | protected $accessTokenUrl |
||
40 | = 'https://developer.api.autodesk.com/authentication/v1/gettoken'; |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | protected $refreshTokenUrl |
||
46 | = 'https://developer.api.autodesk.com/authentication/v1/refreshtoken'; |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | protected $apiDocumentation |
||
52 | = 'https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/overview/'; |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | protected function initialize() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | * |
||
73 | * See: https://forge.autodesk.com/en/docs/oauth/v2/reference/http/users-@me-GET/ |
||
74 | */ |
||
75 | public function getUserProfile() |
||
96 | } |
||
97 |