1 | <?php |
||
18 | class Medium extends OAuth2 |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | protected $scope = 'basicProfile'; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected $apiBaseUrl = 'https://api.medium.com/v1/'; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected $authorizeUrl = 'https://medium.com/m/oauth/authorize'; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | protected $accessTokenUrl = 'https://api.medium.com/v1/tokens'; |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | protected $apiDocumentation = 'https://github.com/Medium/medium-api-docs'; |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | protected function initialize() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | * |
||
63 | * See: https://github.com/Medium/medium-api-docs#getting-the-authenticated-users-details |
||
64 | */ |
||
65 | public function getUserProfile() |
||
88 | } |
||
89 |