Get Sleep

Fitbit provides fitness tracking devices and other wireless-enabled wearable technology devices. This action helps you retrieve the summary and a list of the specified user’s sleep log entries for a given day (including naps). To achieve this, select the appropriate access token for Fitbit. If you haven’t created any access token, select ‘Add New’ to create one. 

In the ‘User ID’ field, enter the encoded ID of the user you wish to get the action summary of. For current logged-in user, simply enter “-” in the given field. Then, enter the date (YYYY-MM-DD format) for which you wish to get the actions. Once you enter these details, click on ‘Done’ and run the workflow. This will return the user’s sleep summary and other related details. 

get-sleep

Output:
  • output-arrow fitbit-128 Get Sleep
    • left-triangle sleep array
    • left-triangle summary object
      • left-triangle totalMinutesAsleep integer
      • left-triangle totalSleepRecords integer
      • left-triangle totalTimeInBed integer