This Choreo uses your OAuth credentials to authenticate your account with Fitbit, and retrieves the details of a specific food in the Fitbit food database.. The documentation for this Fitbit resource can be found here.
Here's an example list of acceptable inputs:
AccessToken: {YOUR FITBIT ACCESS TOKEN}
FoodID: 12323
The following is a sample of the JSON information returned by this Choreo:
{
"food": {
"accessLevel": "PUBLIC",
"brand": "Philadelphia Brand",
"calories": 60,
"defaultServingSize": 2,
"defaultUnit": {
"id": 349,
"name": "tbsp",
"plural": "tbsp"
},
"foodId": 12323,
"locale": "en_US",
"name": "Cream Cheese, Ranch, Whipped",
"servings": [
{
"multiplier": 1,
"servingSize": 2,
"unit": {
"id": 349,
"name": "tbsp",
"plural": "tbsp"
},
"unitId": 349
},
{
"multiplier": 0.1666666716337204,
"servingSize": 1,
"unit": {
"id": 364,
"name": "tsp",
"plural": "tsp"
},
"unitId": 364
},
{
"multiplier": 1,
"servingSize": 0.7400000095367432,
"unit": {
"id": 226,
"name": "oz",
"plural": "oz"
},
"unitId": 226
},
{
"multiplier": 21.62162208557129,
"servingSize": 1,
"unit": {
"id": 180,
"name": "lb",
"plural": "lbs"
},
"unitId": 180
},
{
"multiplier": 0.04766751453280449,
"servingSize": 1,
"unit": {
"id": 147,
"name": "gram",
"plural": "grams"
},
"unitId": 147
},
{
"multiplier": 47.66751480102539,
"servingSize": 1,
"unit": {
"id": 389,
"name": "kg",
"plural": "kg"
},
"unitId": 389
}
],
"units": [
349,
364,
226,
180,
147,
389
]
}
}