fitbit_api 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/fitbit_api/breathing_rate.rb +24 -0
- data/lib/fitbit_api/cardio_score.rb +12 -0
- data/lib/fitbit_api/heart_rate_variability.rb +24 -0
- data/lib/fitbit_api/oxygen_saturation.rb +24 -0
- data/lib/fitbit_api/temperature.rb +24 -0
- data/lib/fitbit_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35736e8dc53586ada210b2dc0431c619eed07d79001e5211283561f3922a2a2d
|
|
4
|
+
data.tar.gz: 36001c0eceb88dac465f1eabe2af276b009e504eef1ad39cdbcb105077b51df0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 114303eb86c474c7e5e8c7338d5ff40e0febfb2c56fd85988cadd1a87c26babb535fa0829692f2582505f99e0a5434dae557f91b5a2a09f0be5ef06495db520d
|
|
7
|
+
data.tar.gz: 67594641c25ca473c4aa0edb6f96a84616805a0b1fbd4272483645d3e0f167d05be2412ae4b0fa996a1ceab88387b8701d1466bef554226ca3ee0d3fa134e1f5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
module FitbitAPI
|
|
2
2
|
class Client
|
|
3
|
+
# Returns the average breathing rate data for a given date or date range.
|
|
4
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
5
|
+
#
|
|
6
|
+
# breathing_rate_summary(date: Date.parse('2021-04-16'))
|
|
7
|
+
# breathing_rate_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
8
|
+
#
|
|
9
|
+
# @param params [Hash] The request parameters
|
|
10
|
+
#
|
|
11
|
+
# @option params :date [Date] The target date
|
|
12
|
+
# @option params :start_date [Date] The start of the date range
|
|
13
|
+
# @option params :end_date [Date] The end of the date range
|
|
14
|
+
|
|
3
15
|
def breathing_rate_summary(opts={})
|
|
4
16
|
date = opts[:date] || Date.today
|
|
5
17
|
start_date = opts[:start_date]
|
|
@@ -23,6 +35,18 @@ module FitbitAPI
|
|
|
23
35
|
result.values[0]
|
|
24
36
|
end
|
|
25
37
|
|
|
38
|
+
# Returns the intraday breathing rate data for a given date or date range.
|
|
39
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
40
|
+
#
|
|
41
|
+
# breathing_rate_intraday(date: Date.parse('2021-04-16'))
|
|
42
|
+
# breathing_rate_intraday(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
43
|
+
#
|
|
44
|
+
# @param params [Hash] The request parameters
|
|
45
|
+
#
|
|
46
|
+
# @option params :date [Date] The target date
|
|
47
|
+
# @option params :start_date [Date] The start of the date range
|
|
48
|
+
# @option params :end_date [Date] The end of the date range
|
|
49
|
+
|
|
26
50
|
def breathing_rate_intraday(opts={})
|
|
27
51
|
date = opts[:date] || Date.today
|
|
28
52
|
start_date = opts[:start_date]
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
module FitbitAPI
|
|
2
2
|
class Client
|
|
3
|
+
# Returns the cardio fitness score data for a given date or date range.
|
|
4
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
5
|
+
#
|
|
6
|
+
# cardio_score_summary(date: Date.parse('2021-04-16'))
|
|
7
|
+
# cardio_score_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
8
|
+
#
|
|
9
|
+
# @param params [Hash] The request parameters
|
|
10
|
+
#
|
|
11
|
+
# @option params :date [Date] The target date
|
|
12
|
+
# @option params :start_date [Date] The start of the date range
|
|
13
|
+
# @option params :end_date [Date] The end of the date range
|
|
14
|
+
|
|
3
15
|
def cardio_score_summary(opts={})
|
|
4
16
|
date = opts[:date] || Date.today
|
|
5
17
|
start_date = opts[:start_date]
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
module FitbitAPI
|
|
2
2
|
class Client
|
|
3
|
+
# Returns the heart rate variability data for a given date or date range.
|
|
4
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
5
|
+
#
|
|
6
|
+
# heart_rate_variability_summary(date: Date.parse('2021-04-16'))
|
|
7
|
+
# heart_rate_variability_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
8
|
+
#
|
|
9
|
+
# @param params [Hash] The request parameters
|
|
10
|
+
#
|
|
11
|
+
# @option params :date [Date] The target date
|
|
12
|
+
# @option params :start_date [Date] The start of the date range
|
|
13
|
+
# @option params :end_date [Date] The end of the date range
|
|
14
|
+
|
|
3
15
|
def heart_rate_variability_summary(opts={})
|
|
4
16
|
date = opts[:date] || Date.today
|
|
5
17
|
start_date = opts[:start_date]
|
|
@@ -23,6 +35,18 @@ module FitbitAPI
|
|
|
23
35
|
result.values[0]
|
|
24
36
|
end
|
|
25
37
|
|
|
38
|
+
# Returns the heart rate variability intraday data for a given date or date range.
|
|
39
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
40
|
+
#
|
|
41
|
+
# heart_rate_variability_intraday(date: Date.parse('2021-04-16'))
|
|
42
|
+
# heart_rate_variability_intraday(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
43
|
+
#
|
|
44
|
+
# @param params [Hash] The request parameters
|
|
45
|
+
#
|
|
46
|
+
# @option params :date [Date] The target date
|
|
47
|
+
# @option params :start_date [Date] The start of the date range
|
|
48
|
+
# @option params :end_date [Date] The end of the date range
|
|
49
|
+
|
|
26
50
|
def heart_rate_variability_intraday(opts={})
|
|
27
51
|
date = opts[:date] || Date.today
|
|
28
52
|
start_date = opts[:start_date]
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
module FitbitAPI
|
|
2
2
|
class Client
|
|
3
|
+
# Returns the oxygen saturation summary data for a given date or date range.
|
|
4
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
5
|
+
#
|
|
6
|
+
# oxygen_saturation_summary(date: Date.parse('2021-04-16'))
|
|
7
|
+
# oxygen_saturation_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
8
|
+
#
|
|
9
|
+
# @param params [Hash] The request parameters
|
|
10
|
+
#
|
|
11
|
+
# @option params :date [Date] The target date
|
|
12
|
+
# @option params :start_date [Date] The start of the date range
|
|
13
|
+
# @option params :end_date [Date] The end of the date range
|
|
14
|
+
|
|
3
15
|
def oxygen_saturation_summary(opts={})
|
|
4
16
|
date = opts[:date] || Date.today
|
|
5
17
|
start_date = opts[:start_date]
|
|
@@ -20,6 +32,18 @@ module FitbitAPI
|
|
|
20
32
|
end
|
|
21
33
|
end
|
|
22
34
|
|
|
35
|
+
# Returns the oxygen saturation intraday data for a given date or date range.
|
|
36
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
37
|
+
#
|
|
38
|
+
# oxygen_saturation_intraday(date: Date.parse('2021-04-16'))
|
|
39
|
+
# oxygen_saturation_intraday(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
40
|
+
#
|
|
41
|
+
# @param params [Hash] The request parameters
|
|
42
|
+
#
|
|
43
|
+
# @option params :date [Date] The target date
|
|
44
|
+
# @option params :start_date [Date] The start of the date range
|
|
45
|
+
# @option params :end_date [Date] The end of the date range
|
|
46
|
+
|
|
23
47
|
def oxygen_saturation_intraday(opts={})
|
|
24
48
|
date = opts[:date] || Date.today
|
|
25
49
|
start_date = opts[:start_date]
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
module FitbitAPI
|
|
2
2
|
class Client
|
|
3
|
+
# Returns the core temperature data for a given date or date range.
|
|
4
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
5
|
+
#
|
|
6
|
+
# core_temperature_summary(date: Date.parse('2021-04-16'))
|
|
7
|
+
# core_temperature_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
8
|
+
#
|
|
9
|
+
# @param params [Hash] The request parameters
|
|
10
|
+
#
|
|
11
|
+
# @option params :date [Date] The target date
|
|
12
|
+
# @option params :start_date [Date] The start of the date range
|
|
13
|
+
# @option params :end_date [Date] The end of the date range
|
|
14
|
+
|
|
3
15
|
def core_temperature_summary(opts={})
|
|
4
16
|
date = opts[:date] || Date.today
|
|
5
17
|
start_date = opts[:start_date]
|
|
@@ -23,6 +35,18 @@ module FitbitAPI
|
|
|
23
35
|
result.values[0]
|
|
24
36
|
end
|
|
25
37
|
|
|
38
|
+
# Returns the skin temperature data for a given date or date range.
|
|
39
|
+
# If both a date and a date range are given, the date range takes precedence.
|
|
40
|
+
#
|
|
41
|
+
# skin_temperature_summary(date: Date.parse('2021-04-16'))
|
|
42
|
+
# skin_temperature_summary(start_date: Date.parse('2021-05-18'), end_date: Date.parse('2021-05-24'))
|
|
43
|
+
#
|
|
44
|
+
# @param params [Hash] The request parameters
|
|
45
|
+
#
|
|
46
|
+
# @option params :date [Date] The target date
|
|
47
|
+
# @option params :start_date [Date] The start of the date range
|
|
48
|
+
# @option params :end_date [Date] The end of the date range
|
|
49
|
+
|
|
26
50
|
def skin_temperature_summary(opts={})
|
|
27
51
|
date = opts[:date] || Date.today
|
|
28
52
|
start_date = opts[:start_date]
|
data/lib/fitbit_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fitbit_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zoran
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|