This Choreo uses your OAuth credentials to authenticate your account with Fitbit, and searches public foods in the Fibit database and private, user-created foods by keyword. This Choreo can be useful in combination with other Choreos. For example, you can retrieve a food ID using the SearchFoods Choreo and use that ID in the FoodId input of the LogFood Choreo. The documentation for this Fitbit resource can be found here.
Here's an example list of acceptable inputs:
AccessToken: {YOUR FITBIT ACCESS TOKEN}
Query: Artichoke
The following is a sample of the JSON information returned by this Choreo:
{
"foods": [
{
"accessLevel": "PUBLIC",
"brand": "",
"calories": 60,
"defaultServingSize": 1,
"defaultUnit": {
"id": 6,
"name": "artichoke",
"plural": "artichokes"
},
"foodId": 1731,
"locale": "en_US",
"name": "Artichoke, Boiled, No Salt (globe Or French)",
"units": [
6,
91,
256,
279,
226,
180,
147,
389
]
},
{
"accessLevel": "PUBLIC",
"brand": "",
"calories": 60,
"defaultServingSize": 1,
"defaultUnit": {
"id": 6,
"name": "artichoke",
"plural": "artichokes"
},
"foodId": 7624,
"locale": "en_US",
"name": "Artichoke, Boiled W/salt (globe Or French)",
"units": [
6,
91,
256,
279,
226,
180,
147,
389
]
},
{
"accessLevel": "PUBLIC",
"brand": "",
"calories": 108,
"defaultServingSize": 1,
"defaultUnit": {
"id": 228,
"name": "package",
"plural": "packages"
},
"foodId": 14093,
"locale": "en_US",
"name": "Artichoke, Frozen, No Salt (globe Or French)",
"units": [
228,
91,
256,
279,
226,
180,
147,
389
]
},
{
"accessLevel": "PUBLIC",
"brand": "Wegmans",
"calories": 25,
"defaultServingSize": 1,
"defaultUnit": {
"id": 204,
"name": "medium",
"plural": "mediums"
},
"foodId": 33484,
"locale": "en_US",
"name": "Artichoke, Raw",
"units": [
204
]
},
{
"accessLevel": "PUBLIC",
"brand": "Wegmans",
"calories": 120,
"defaultServingSize": 2,
"defaultUnit": {
"id": 400,
"name": "tblsp",
"plural": "tblsps"
},
"foodId": 31402,
"locale": "en_US",
"name": "Artichoke and Asiago",
"units": [
400
]
},
{
"accessLevel": "PUBLIC",
"brand": "Wegmans",
"calories": 110,
"defaultServingSize": 2,
"defaultUnit": {
"id": 400,
"name": "tblsp",
"plural": "tblsps"
},
"foodId": 32499,
"locale": "en_US",
"name": "Artichoke Lemon Pesto",
"units": [
400
]
},
{
"accessLevel": "PUBLIC",
"brand": "Omaha Steaks",
"calories": 120,
"defaultServingSize": 1,
"defaultUnit": {
"id": 304,
"name": "serving",
"plural": "servings"
},
"foodId": 44834,
"locale": "en_US",
"name": "Artichoke Spinach Dip",
"units": [
304,
226,
180,
147,
389
]
}
]
}