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 . Withings . Sleep . GetSleepMetrics
Retrieves sleep data for the specified user.
/*
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 retrieves sleep data for the specified user. The documentation for this Withings resource can be found here.
Here is an example of acceptable inputs:
ConsumerKey: {YOUR WITHINGS CONSUMER KEY}
ConsumerSecret: {YOUR WITHINGS CONSUMER SECRET}
AccessToken: {YOUR WITHINGS ACCESS TOKEN}
AccessTokenSecret: {YOUR WITHINGS ACCESS TOKEN SECRET}
UserID: 29
StartDate: 1222819200
EndDate: 1223190167
The following is a sample of the JSON information returned by this Choreo:
{ "status": 0, "body": { "series": [ { "startdate": 1387235398, "state": 0, "enddate": 1387235758 }, { "startdate": 1387235758, "state": 1, "enddate": 1387236478 }, { "startdate": 1387236478, "state": 2, "enddate": 1387238158 }, { "startdate": 1387238158, "state": 1, "enddate": 1387239178 } ], "model": 16 } }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms