1 | <?php |
||
13 | class HeadHunter extends AbstractProvider |
||
14 | { |
||
15 | use BearerAuthorizationTrait; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $urlApi = 'https://api.hh.ru'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $urlAuthorize = 'https://hh.ru/oauth/authorize'; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $urlAccessToken = 'https://hh.ru/oauth/token'; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $state; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $redirectUri; |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | 1 | protected function getDefaultScopes() |
|
49 | |||
50 | /** |
||
51 | * @inheritDoc |
||
52 | */ |
||
53 | 1 | public function getBaseAuthorizationUrl() |
|
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | 1 | public function getBaseAccessTokenUrl(array $params) |
|
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | 1 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
81 | |||
82 | /** |
||
83 | * @inheritDoc |
||
84 | */ |
||
85 | 1 | protected function getAuthorizationParameters(array $options) |
|
100 | |||
101 | /** |
||
102 | * @inheritDoc |
||
103 | */ |
||
104 | 1 | protected function checkResponse(ResponseInterface $response, $data) |
|
110 | |||
111 | /** |
||
112 | * @inheritDoc |
||
113 | */ |
||
114 | 1 | protected function createResourceOwner(array $response, AccessToken $token) |
|
118 | } |
||
119 |