Module: FitbitClient::Resources::Devices
- Included in:
- FitbitClient::Resources
- Defined in:
- lib/fitbit_client/resources/devices.rb
Instance Method Summary collapse
-
#alarms(tracker_id, options = {}) ⇒ Object
Returns a list of the set alarms connected to a user’s account.
-
#devices(options = {}) ⇒ Object
The Get Device endpoint returns a list of the Fitbit devices connected to a user’s account.
Instance Method Details
#alarms(tracker_id, options = {}) ⇒ Object
Returns a list of the set alarms connected to a user’s account.
tracker_id : The ID of the tracker for which data is returned. The tracker-id value is found via the Get Devices endpoint.
17 18 19 |
# File 'lib/fitbit_client/resources/devices.rb', line 17 def alarms(tracker_id, = {}) get_json(path_user_version("/devices/tracker/#{tracker_id}/alarms", )) end |
#devices(options = {}) ⇒ Object
The Get Device endpoint returns a list of the Fitbit devices connected to a user’s account.
Third-party applications can check when a Fitbit device last synced with Fitbit’s servers using this endpoint.
11 12 13 |
# File 'lib/fitbit_client/resources/devices.rb', line 11 def devices( = {}) get_json(path_user_version('/devices', )) end |