1 | <?php |
||
7 | class Oauth2Token extends POSTEntryPoint { |
||
8 | |||
9 | protected $_AUTH_REQUIRED = false; |
||
10 | protected $_URL = 'oauth2/token'; |
||
11 | protected $_REQUIRED_DATA = array( |
||
12 | 'username', |
||
13 | 'password', |
||
14 | 'grant_type', |
||
15 | 'client_id', |
||
16 | 'client_secret', |
||
17 | 'platform' |
||
18 | ); |
||
19 | |||
20 | /** |
||
21 | * Configure the Grant Type to be Password |
||
22 | * @param mixed $data |
||
23 | * @return array|mixed |
||
24 | */ |
||
25 | protected function configureData($data) { |
||
33 | |||
34 | |||
35 | } |