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 . Foods . LogFood
Log a new food entry for a particular 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 logs a new food entry for a particular date. This Choreo requires you to know the ID of the food you're logging an entry for; these IDs can be retrieved by running the SearchFoods Choreo. A unit ID is also required, and is assoicated with the Amount input. For example, if the value for Amount is 14 and the UnitID is 147, this will indicate 14 grams because the unit ID for grams is 147. Unit IDs can be retrieved using the GetFoods Choreo.The documentation for this Fitbit resource can be found here.
Here's an example list of acceptable inputs:
AccessToken: {YOUR FITBIT ACCESS TOKEN}
Amount: 14
Date: 2011-10-14
FoodID: 10409 (this is the id for "Pizza")
MealType: Lunch
UnitID: 147 (this is the ID for "grams")
The following is a sample of the JSON information returned by this Choreo:
{ "foodLog": { "isFavorite": true, "logDate": "2013-03-18", "logId": 171026781, "loggedFood": { "accessLevel": "PUBLIC", "amount": 14, "brand": "", "calories": 36, "foodId": 10409, "locale": "en_US", "mealTypeId": 3, "name": "Pizza", "unit": { "id": 147, "name": "gram", "plural": "grams" }, "units": [ 226, 180, 147, 389 ] }, "nutritionalValues": { "calories": 36, "carbs": 3.5, "fat": 1.5, "fiber": 0, "protein": 2, "sodium": 0 } } }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms