Also subscribe to the "sleep" Fitbit collection.
[kraftakt.git] / fitbit / fitbit.go
index 04c50cd..4555e22 100644 (file)
@@ -22,7 +22,12 @@ var oauth2Config = &oauth2.Config{
        ClientSecret: "@FITBIT_CLIENT_SECRET@",
        Endpoint:     oauth2fitbit.Endpoint,
        RedirectURL:  "https://kraftakt.octo.it/fitbit/grant",
-       Scopes:       []string{"activity", "heartrate", "profile"},
+       Scopes: []string{
+               "activity",
+               "heartrate",
+               "profile",
+               "sleep",
+       },
 }
 
 const csrfToken = "@CSRFTOKEN@"