Skip to content

Commit 2285639

Browse files
author
Pedro Amorim
committed
Netatmo - Add new scopes
Add new scopes for netatmo camera and other. https://dev.netatmo.com/en-US/resources/technical/guides/authentication/clientcredentials
1 parent 09f4af3 commit 2285639

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/OAuth/OAuth2/Service/Netatmo.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ class Netatmo extends AbstractService
3636
const SCOPE_THERMOSTAT_READ = 'read_thermostat';
3737
// Used to configure the thermostat (syncschedule, setthermpoint)
3838
const SCOPE_THERMOSTAT_WRITE = 'write_thermostat';
39+
// Used to retrieve Welcome data (Gethomedata, Getcamerapicture)
40+
const SCOPE_READ_CAMERA = 'read_camera';
41+
// Used to tell Welcome a specific person or everybody has left the Home (Setpersonsaway)
42+
const SCOPE_WRITE_CAMERA = 'write_camera';
43+
// Used to access the camera, the videos and the live stream.
44+
const SCOPE_ACCESS_CAMERA = 'access_camera';
45+
// Used to retrieve Presence data (Gethomedata, Getcamerapicture)
46+
const SCOPE_READ_PRESENCE = 'read_presence';
47+
// Used to access the camera, the videos and the live stream.
48+
const SCOPE_ACCESS_PRESENCE = 'access_presence';
49+
// Used to read data coming from Healthy Home Coach (gethomecoachsdata).
50+
const SCOPE_READ_HOMECOACH = 'read_homecoach';
3951

4052
public function __construct(
4153
CredentialsInterface $credentials,

0 commit comments

Comments
 (0)