1 | <?php |
||
23 | class AccessToken extends BaseAccessToken |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $requestMethod = 'POST'; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $queryName = 'access_token'; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc}. |
||
37 | */ |
||
38 | protected $tokenKey = 'authorizer_access_token'; |
||
39 | |||
40 | /** |
||
41 | * @var \EasyWeChat\OpenPlatform\Application |
||
42 | */ |
||
43 | protected $component; |
||
44 | |||
45 | /** |
||
46 | * AuthorizerAccessToken constructor. |
||
47 | * |
||
48 | * @param \Pimple\Container $app |
||
49 | * @param \EasyWeChat\OpenPlatform\Application $component |
||
50 | */ |
||
51 | public function __construct(Container $app, Application $component) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc}. |
||
60 | */ |
||
61 | protected function getCredentials(): array |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getEndpoint(): string |
||
79 | } |
||
80 |