This Choreo uses your OAuth credentials to authenticate your account with Fitbit, and retrieves a summary and list of a user's food log entries for a specified date. The documentation for this Fitbit resource can be found here.
Here's an example list of acceptable inputs:
AccessToken: {YOUR FITBIT ACCESS TOKEN}
Date: 2013-03-18
The following is a sample of the JSON information returned by this Choreo:
{
"foods": [
{
"isFavorite": true,
"logDate": "2013-03-18",
"logId": 171023033,
"loggedFood": {
"accessLevel": "PUBLIC",
"amount": 1,
"brand": "",
"calories": 2,
"foodId": 30414,
"locale": "en_US",
"mealTypeId": 1,
"name": "Ice Cream, Fat 14%",
"unit": {
"id": 147,
"name": "gram",
"plural": "grams"
},
"units": [
226,
180,
147,
389
]
},
"nutritionalValues": {
"calories": 2,
"carbs": 0,
"fat": 0,
"fiber": 0,
"protein": 0,
"sodium": 0.5
}
},
{
"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
}
}
],
"summary": {
"calories": 38,
"carbs": 3.9010000228881836,
"fat": 1.6649999618530273,
"fiber": 0.1679999977350235,
"protein": 1.9450000524520874,
"sodium": 0.4000000059604645,
"water": 0
}
}