From 4502b937a61abea3970e97fef2ea40d8200bcb24 Mon Sep 17 00:00:00 2001 From: Zoran Pesic Date: Thu, 28 Dec 2023 01:08:54 -0800 Subject: [PATCH] add ecg scope to defalt config value --- README.md | 2 +- lib/fitbit_api/base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b5758a..720edb9 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ When initializing a `FitbitAPI::Client` instance, you're given access to a handf | `api_version` | API version to be used when making requests | `"1"` | | `unit_system` | The measurement unit system to use for response values | `"en_US"` | | `locale` | The locale to use for response values | `"en_US"` | -| `scope` | A list of permissions being requested (array or space-delimited string) | `%w[activity nutrition profile settings sleep social weight heartrate respiratory_rate oxygen_saturation cardio_fitness temperature]` | +| `scope` | A list of permissions being requested (array or space-delimited string) | `%w[activity nutrition profile settings sleep social weight heartrate respiratory_rate oxygen_saturation cardio_fitness temperature electrocardiogram]` | | `snake_case_keys` | Transform response payload's keys to snake case format | `false` | | `symbolize_keys` | Transform response payload's keys to symbols | `false` | | `auto_refresh_token` | Automatically refreshes the access token once expired | `true` | diff --git a/lib/fitbit_api/base.rb b/lib/fitbit_api/base.rb index 88f15f5..ff76226 100644 --- a/lib/fitbit_api/base.rb +++ b/lib/fitbit_api/base.rb @@ -19,7 +19,7 @@ module FitbitAPI define_setting :locale, 'en_US' define_setting :scope, %w[activity nutrition profile settings sleep social weight heartrate respiratory_rate oxygen_saturation cardio_fitness - temperature] + temperature electrocardiogram] define_setting :api_version, '1'