You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Fitbit . Sleep . GetSleep
Gets a summary and list of a user's sleep log entries for a specified date.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo uses your OAuth credentials to authenticate your account with Fitbit, and retrieves a list of a user's sleep log entries for a specified date. The documentation for this Fitbit resource can be found here.
Here's an example list of acceptable inputs:
ConsumerKey: {YOUR FITBIT CONSUMER KEY}
ConsumerSecret: {YOUR FITBIT CONSUMER SECRET}
AccessToken: {YOUR FITBIT ACCESS TOKEN}
AccessTokenSecret: {YOUR FITBIT TOKEN SECRET}
Date: 2013-03-18
The following is a sample of the JSON information returned by this Choreo:
{ "sleep": [ { "isMainSleep": true, "logId": 29744, "efficiency": 98, "startTime": "2011-06-16T00:00:00.000", "duration": 28800000, "minutesToFallAsleep": 0, "minutesAsleep": 480, "minutesAwake": 0, "minutesAfterWakeup": 0, "awakeningsCount": 0, "timeInBed": 480, "minuteData": [ { "dateTime": "00:00:00", "value": "3" }, { "dateTime": "00:01:00", "value": "2" }, { "dateTime": "00:02:00", "value": "1" } ] }, { "isMainSleep": false, "logId": 29745, "efficiency": 93, "startTime": "2011-06-16T14:00:00.000", "duration": 3600000, "minutesToFallAsleep": 20, "minutesAsleep": 38, "minutesAwake": 0, "minutesAfterWakeup": 2, "awakeningsCount": 0, "timeInBed": 60, "minuteData": [ { "dateTime": "14:00:00", "value": "3" } ] } ], "summary": { "totalMinutesAsleep": 518, "totalSleepRecords": 2, "totalTimeInBed": 540 } }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms