1 | <?php |
||
23 | class Netatmo extends AbstractService |
||
24 | { |
||
25 | |||
26 | // SCOPES |
||
27 | // @link https://dev.netatmo.com/doc/authentication/scopes |
||
28 | |||
29 | // Used to read weather station's data (devicelist, getmeasure) |
||
30 | const SCOPE_STATION_READ = 'read_station'; |
||
31 | // Used to read thermostat's data (devicelist, getmeasure, getthermstate) |
||
32 | const SCOPE_THERMOSTAT_READ = 'read_thermostat'; |
||
33 | // Used to configure the thermostat (syncschedule, setthermpoint) |
||
34 | const SCOPE_THERMOSTAT_WRITE = 'write_thermostat'; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | protected function init() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getAuthorizationEndpoint() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getAccessTokenEndpoint() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | protected function getAuthorizationMethod() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | protected function parseAccessTokenResponse($responseBody) |
||
104 | } |
||
105 |