From 40ca41a952546528757b42b391f7648a7d425432 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 31 Oct 2017 16:43:27 +0100 Subject: [PATCH] Netatmo - Add new scopes Add new scopes for netatmo camera and other. https://dev.netatmo.com/en-US/resources/technical/guides/authentication/clientcredentials --- src/OAuth/OAuth2/Service/Netatmo.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/OAuth/OAuth2/Service/Netatmo.php b/src/OAuth/OAuth2/Service/Netatmo.php index eb5c68d9..65e954dd 100644 --- a/src/OAuth/OAuth2/Service/Netatmo.php +++ b/src/OAuth/OAuth2/Service/Netatmo.php @@ -36,6 +36,18 @@ class Netatmo extends AbstractService const SCOPE_THERMOSTAT_READ = 'read_thermostat'; // Used to configure the thermostat (syncschedule, setthermpoint) const SCOPE_THERMOSTAT_WRITE = 'write_thermostat'; + // Used to retrieve Welcome data (Gethomedata, Getcamerapicture) + const SCOPE_READ_CAMERA = 'read_camera'; + // Used to tell Welcome a specific person or everybody has left the Home (Setpersonsaway) + const SCOPE_WRITE_CAMERA = 'write_camera'; + // Used to access the camera, the videos and the live stream. + const SCOPE_ACCESS_CAMERA = 'access_camera'; + // Used to retrieve Presence data (Gethomedata, Getcamerapicture) + const SCOPE_READ_PRESENCE = 'read_presence'; + // Used to access the camera, the videos and the live stream. + const SCOPE_ACCESS_PRESENCE = 'access_presence'; + // Used to read data coming from Healthy Home Coach (gethomecoachsdata). + const SCOPE_READ_HOMECOACH = 'read_homecoach'; public function __construct( CredentialsInterface $credentials,