{"_id":"570c02c65fac770e00b67c7c","__v":0,"initVersion":{"_id":"56f4385b3d35720e00ba9839","version":"1.2016-03-01"},"project":"5646482fa74cd10d00a3f014","user":{"_id":"55e87bcdc5bccb2d008a9ba4","username":"","name":"Selma Pittman"},"metadata":{"title":"","description":"","image":[]},"createdAt":"2016-04-11T20:02:14.895Z","changelog":[{"_id":"570c02c65fac770e00b67c7e","update":"Expanded data added as key inside standard for Validic-Version: 2016-03-01","type":"added"},{"_id":"570c02c65fac770e00b67c7d","update":"","type":"added"}],"body":"Version 2016-03-01 is now live. Below is a list of changed functionality. \n\n###Expanded Format Change\nPreviously when expanded data was returned, those values were added to the standard response and, in some cases, overwrote the standard payload results. In Validic Version 2016-03-01, those values are returned as a key within the standard response. The following example outlines the change. \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"summary\\\":{  \\n      \\\"status\\\":200,\\n      \\\"message\\\":\\\"Ok\\\",\\n      \\\"results\\\":11813,\\n      \\\"start_date\\\":\\\"2015-10-01T08:44:29+00:00\\\",\\n      \\\"end_date\\\":\\\"2015-12-03T08:54:27+00:00\\\",\\n      \\\"offset\\\":0,\\n      \\\"limit\\\":2,\\n      \\\"previous\\\":null,\\n      \\\"next\\\":\\\"https://api.validic.com/v1/organizations/51bb1f2c6SAMPLE01a000001/nutrition/latest?access_token=9222c83bac9ded898c77bSAMPLE40afd4bb247c0e0b01SAMPLEbd8a8f544904e&end_date=2015-12-03T08%3A54%3A27Z&expanded=1&limit=2&page=2&start_date=2015-10-01T08%3A44%3A29Z\\\",\\n      \\\"params\\\":{  \\n         \\\"start_date\\\":\\\"2015-10-01T08:44:29+00:00\\\",\\n         \\\"end_date\\\":\\\"2015-12-03T08:54:27+00:00\\\",\\n         \\\"expanded\\\":true,\\n         \\\"offset\\\":0,\\n         \\\"limit\\\":2\\n      }\\n   },\\n   \\\"nutrition\\\":[  \\n      {  \\n         \\\"_id\\\":\\\"5660012868SAMPLEce066f39\\\",\\n         \\\"access_level\\\":\\\"PRIVATE\\\",\\n         \\\"activity_id\\\":\\\"5699887240\\\",\\n         \\\"amount\\\":1,\\n         \\\"brand\\\":\\\"Lose It!\\\",\\n         \\\"calories\\\":567.0,\\n         \\\"carbohydrates\\\":44.7,\\n         \\\"carbs\\\":44.7,\\n         \\\"fat\\\":30.7,\\n         \\\"fiber\\\":4.7,\\n         \\\"food_id\\\":0,\\n         \\\"is_favorite\\\":false,\\n         \\\"last_updated\\\":\\\"2015-12-03T08:45:28+00:00\\\",\\n         \\\"locale\\\":null,\\n         \\\"log_date\\\":\\\"2015-12-01\\\",\\n         \\\"log_id\\\":\\\"5699887240\\\",\\n         \\\"meal\\\":\\\"Burrito\\\",\\n         \\\"meal_type_id\\\":5,\\n         \\\"name\\\":\\\"Burrito\\\",\\n         \\\"protein\\\":32.7,\\n         \\\"sodium\\\":1507.4,\\n         \\\"source\\\":\\\"fitbit\\\",\\n         \\\"source_name\\\":\\\"Fitbit\\\",\\n         \\\"timestamp\\\":\\\"2015-12-01T08:00:00+00:00\\\",\\n         \\\"user_id\\\":\\\"53bb087184SAMPLE6a000013\\\",\\n         \\\"utc_offset\\\":\\\"-08:00\\\",\\n         \\\"validated\\\":false,\\n         \\\"water\\\":null\\n      },\\n      {  \\n         \\\"_id\\\":\\\"56600127SAMPLE7fe00616fe\\\",\\n         \\\"access_level\\\":\\\"PRIVATE\\\",\\n         \\\"activity_id\\\":\\\"5699825649\\\",\\n         \\\"amount\\\":1,\\n         \\\"brand\\\":\\\"Lose It!\\\",\\n         \\\"calories\\\":500.0,\\n         \\\"carbohydrates\\\":102.5,\\n         \\\"carbs\\\":102.5,\\n         \\\"fat\\\":2.5,\\n         \\\"fiber\\\":5.0,\\n         \\\"food_id\\\":0,\\n         \\\"is_favorite\\\":false,\\n         \\\"last_updated\\\":\\\"2015-12-03T08:45:27+00:00\\\",\\n         \\\"locale\\\":null,\\n         \\\"log_date\\\":\\\"2015-12-01\\\",\\n         \\\"log_id\\\":\\\"5699825649\\\",\\n         \\\"meal\\\":\\\"Pasta\\\",\\n         \\\"meal_type_id\\\":3,\\n         \\\"name\\\":\\\"Pasta\\\",\\n         \\\"protein\\\":17.5,\\n         \\\"sodium\\\":0.0,\\n         \\\"source\\\":\\\"fitbit\\\",\\n         \\\"source_name\\\":\\\"Fitbit\\\",\\n         \\\"timestamp\\\":\\\"2015-12-01T08:00:00+00:00\\\",\\n         \\\"user_id\\\":\\\"53bb08718SAMPLE2d6a000013\\\",\\n         \\\"utc_offset\\\":\\\"-08:00\\\",\\n         \\\"validated\\\":false,\\n         \\\"water\\\":null\\n      }\\n   ]\\n}\",\n      \"language\": \"text\",\n      \"name\": \"v1.2016-01-01\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"summary\\\":{  \\n      \\\"status\\\":200,\\n      \\\"message\\\":\\\"Ok\\\",\\n      \\\"results\\\":11813,\\n      \\\"start_date\\\":\\\"2015-10-01T08:44:29+00:00\\\",\\n      \\\"end_date\\\":\\\"2015-12-03T08:54:27+00:00\\\",\\n      \\\"offset\\\":0,\\n      \\\"limit\\\":2,\\n      \\\"previous\\\":null,\\n      \\\"next\\\":\\\"https://api.validic.com/v1/organizations/51bb1f2c6deSAMPLE000001/nutrition/latest?access_token=9222cSAMPLE9ded898c77b17SAMPLE0afd4bb247c0e0b01SAMPLEd8a8f544904e&end_date=2015-12-03T08%3A54%3A27Z&expanded=1&limit=2&page=2&start_date=2015-10-01T08%3A44%3A29Z\\\",\\n      \\\"params\\\":{  \\n         \\\"start_date\\\":\\\"2015-10-01T08:44:29+00:00\\\",\\n         \\\"end_date\\\":\\\"2015-12-03T08:54:27+00:00\\\",\\n         \\\"expanded\\\":true,\\n         \\\"offset\\\":0,\\n         \\\"limit\\\":2\\n      }\\n   },\\n   \\\"nutrition\\\":[  \\n      {  \\n         \\\"_id\\\":\\\"5660012868d48SAMPLE66f39\\\",\\n         \\\"activity_id\\\":\\\"5699887240\\\",\\n         \\\"calories\\\":567.0,\\n         \\\"carbohydrates\\\":44.7,\\n         \\\"expanded\\\":{  \\n            \\\"access_level\\\":\\\"PRIVATE\\\",\\n            \\\"amount\\\":1,\\n            \\\"brand\\\":\\\"Lose It!\\\",\\n            \\\"carbs\\\":44.7,\\n            \\\"food_id\\\":0,\\n            \\\"is_favorite\\\":false,\\n            \\\"locale\\\":null,\\n            \\\"log_date\\\":\\\"2015-12-01\\\",\\n            \\\"log_id\\\":\\\"5699887240\\\",\\n            \\\"meal_type_id\\\":5,\\n            \\\"name\\\":\\\"Burrito\\\"\\n         },\\n         \\\"fat\\\":30.7,\\n         \\\"fiber\\\":4.7,\\n         \\\"last_updated\\\":\\\"2015-12-03T08:45:28+00:00\\\",\\n         \\\"meal\\\":\\\"Burrito\\\",\\n         \\\"protein\\\":32.7,\\n         \\\"sodium\\\":1507.4,\\n         \\\"source\\\":\\\"fitbit\\\",\\n         \\\"source_name\\\":\\\"Fitbit\\\",\\n         \\\"timestamp\\\":\\\"2015-12-01T08:00:00+00:00\\\",\\n         \\\"user_id\\\":\\\"53bb0871846SAMPLE000013\\\",\\n         \\\"utc_offset\\\":\\\"-08:00\\\",\\n         \\\"validated\\\":false,\\n         \\\"water\\\":null\\n      },\\n      {  \\n         \\\"_id\\\":\\\"56600127ab5SAMPLE616fe\\\",\\n         \\\"activity_id\\\":\\\"5699825649\\\",\\n         \\\"calories\\\":500.0,\\n         \\\"carbohydrates\\\":102.5,\\n         \\\"expanded\\\":{  \\n            \\\"access_level\\\":\\\"PRIVATE\\\",\\n            \\\"amount\\\":1,\\n            \\\"brand\\\":\\\"Lose It!\\\",\\n            \\\"carbs\\\":102.5,\\n            \\\"food_id\\\":0,\\n            \\\"is_favorite\\\":false,\\n            \\\"locale\\\":null,\\n            \\\"log_date\\\":\\\"2015-12-01\\\",\\n            \\\"log_id\\\":\\\"5699825649\\\",\\n            \\\"meal_type_id\\\":3,\\n            \\\"name\\\":\\\"Pasta\\\"\\n         },\\n         \\\"fat\\\":2.5,\\n         \\\"fiber\\\":5.0,\\n         \\\"last_updated\\\":\\\"2015-12-03T08:45:27+00:00\\\",\\n         \\\"meal\\\":\\\"Pasta\\\",\\n         \\\"protein\\\":17.5,\\n         \\\"sodium\\\":0.0,\\n         \\\"source\\\":\\\"fitbit\\\",\\n         \\\"source_name\\\":\\\"Fitbit\\\",\\n         \\\"timestamp\\\":\\\"2015-12-01T08:00:00+00:00\\\",\\n         \\\"user_id\\\":\\\"53bb08718462SAMPLE000013\\\",\\n         \\\"utc_offset\\\":\\\"-08:00\\\",\\n         \\\"validated\\\":false,\\n         \\\"water\\\":null\\n      }\\n   ]\\n}\",\n      \"language\": \"text\",\n      \"name\": \"v1.2016-03-01\"\n    }\n  ]\n}\n[/block]","slug":"version-2016-03-01-released","title":"Version 2016-03-01 Released"}

Version 2016-03-01 Released


Version 2016-03-01 is now live. Below is a list of changed functionality. ###Expanded Format Change Previously when expanded data was returned, those values were added to the standard response and, in some cases, overwrote the standard payload results. In Validic Version 2016-03-01, those values are returned as a key within the standard response. The following example outlines the change. [block:code] { "codes": [ { "code": "{ \n \"summary\":{ \n \"status\":200,\n \"message\":\"Ok\",\n \"results\":11813,\n \"start_date\":\"2015-10-01T08:44:29+00:00\",\n \"end_date\":\"2015-12-03T08:54:27+00:00\",\n \"offset\":0,\n \"limit\":2,\n \"previous\":null,\n \"next\":\"https://api.validic.com/v1/organizations/51bb1f2c6SAMPLE01a000001/nutrition/latest?access_token=9222c83bac9ded898c77bSAMPLE40afd4bb247c0e0b01SAMPLEbd8a8f544904e&end_date=2015-12-03T08%3A54%3A27Z&expanded=1&limit=2&page=2&start_date=2015-10-01T08%3A44%3A29Z\",\n \"params\":{ \n \"start_date\":\"2015-10-01T08:44:29+00:00\",\n \"end_date\":\"2015-12-03T08:54:27+00:00\",\n \"expanded\":true,\n \"offset\":0,\n \"limit\":2\n }\n },\n \"nutrition\":[ \n { \n \"_id\":\"5660012868SAMPLEce066f39\",\n \"access_level\":\"PRIVATE\",\n \"activity_id\":\"5699887240\",\n \"amount\":1,\n \"brand\":\"Lose It!\",\n \"calories\":567.0,\n \"carbohydrates\":44.7,\n \"carbs\":44.7,\n \"fat\":30.7,\n \"fiber\":4.7,\n \"food_id\":0,\n \"is_favorite\":false,\n \"last_updated\":\"2015-12-03T08:45:28+00:00\",\n \"locale\":null,\n \"log_date\":\"2015-12-01\",\n \"log_id\":\"5699887240\",\n \"meal\":\"Burrito\",\n \"meal_type_id\":5,\n \"name\":\"Burrito\",\n \"protein\":32.7,\n \"sodium\":1507.4,\n \"source\":\"fitbit\",\n \"source_name\":\"Fitbit\",\n \"timestamp\":\"2015-12-01T08:00:00+00:00\",\n \"user_id\":\"53bb087184SAMPLE6a000013\",\n \"utc_offset\":\"-08:00\",\n \"validated\":false,\n \"water\":null\n },\n { \n \"_id\":\"56600127SAMPLE7fe00616fe\",\n \"access_level\":\"PRIVATE\",\n \"activity_id\":\"5699825649\",\n \"amount\":1,\n \"brand\":\"Lose It!\",\n \"calories\":500.0,\n \"carbohydrates\":102.5,\n \"carbs\":102.5,\n \"fat\":2.5,\n \"fiber\":5.0,\n \"food_id\":0,\n \"is_favorite\":false,\n \"last_updated\":\"2015-12-03T08:45:27+00:00\",\n \"locale\":null,\n \"log_date\":\"2015-12-01\",\n \"log_id\":\"5699825649\",\n \"meal\":\"Pasta\",\n \"meal_type_id\":3,\n \"name\":\"Pasta\",\n \"protein\":17.5,\n \"sodium\":0.0,\n \"source\":\"fitbit\",\n \"source_name\":\"Fitbit\",\n \"timestamp\":\"2015-12-01T08:00:00+00:00\",\n \"user_id\":\"53bb08718SAMPLE2d6a000013\",\n \"utc_offset\":\"-08:00\",\n \"validated\":false,\n \"water\":null\n }\n ]\n}", "language": "text", "name": "v1.2016-01-01" } ] } [/block] [block:code] { "codes": [ { "code": "{ \n \"summary\":{ \n \"status\":200,\n \"message\":\"Ok\",\n \"results\":11813,\n \"start_date\":\"2015-10-01T08:44:29+00:00\",\n \"end_date\":\"2015-12-03T08:54:27+00:00\",\n \"offset\":0,\n \"limit\":2,\n \"previous\":null,\n \"next\":\"https://api.validic.com/v1/organizations/51bb1f2c6deSAMPLE000001/nutrition/latest?access_token=9222cSAMPLE9ded898c77b17SAMPLE0afd4bb247c0e0b01SAMPLEd8a8f544904e&end_date=2015-12-03T08%3A54%3A27Z&expanded=1&limit=2&page=2&start_date=2015-10-01T08%3A44%3A29Z\",\n \"params\":{ \n \"start_date\":\"2015-10-01T08:44:29+00:00\",\n \"end_date\":\"2015-12-03T08:54:27+00:00\",\n \"expanded\":true,\n \"offset\":0,\n \"limit\":2\n }\n },\n \"nutrition\":[ \n { \n \"_id\":\"5660012868d48SAMPLE66f39\",\n \"activity_id\":\"5699887240\",\n \"calories\":567.0,\n \"carbohydrates\":44.7,\n \"expanded\":{ \n \"access_level\":\"PRIVATE\",\n \"amount\":1,\n \"brand\":\"Lose It!\",\n \"carbs\":44.7,\n \"food_id\":0,\n \"is_favorite\":false,\n \"locale\":null,\n \"log_date\":\"2015-12-01\",\n \"log_id\":\"5699887240\",\n \"meal_type_id\":5,\n \"name\":\"Burrito\"\n },\n \"fat\":30.7,\n \"fiber\":4.7,\n \"last_updated\":\"2015-12-03T08:45:28+00:00\",\n \"meal\":\"Burrito\",\n \"protein\":32.7,\n \"sodium\":1507.4,\n \"source\":\"fitbit\",\n \"source_name\":\"Fitbit\",\n \"timestamp\":\"2015-12-01T08:00:00+00:00\",\n \"user_id\":\"53bb0871846SAMPLE000013\",\n \"utc_offset\":\"-08:00\",\n \"validated\":false,\n \"water\":null\n },\n { \n \"_id\":\"56600127ab5SAMPLE616fe\",\n \"activity_id\":\"5699825649\",\n \"calories\":500.0,\n \"carbohydrates\":102.5,\n \"expanded\":{ \n \"access_level\":\"PRIVATE\",\n \"amount\":1,\n \"brand\":\"Lose It!\",\n \"carbs\":102.5,\n \"food_id\":0,\n \"is_favorite\":false,\n \"locale\":null,\n \"log_date\":\"2015-12-01\",\n \"log_id\":\"5699825649\",\n \"meal_type_id\":3,\n \"name\":\"Pasta\"\n },\n \"fat\":2.5,\n \"fiber\":5.0,\n \"last_updated\":\"2015-12-03T08:45:27+00:00\",\n \"meal\":\"Pasta\",\n \"protein\":17.5,\n \"sodium\":0.0,\n \"source\":\"fitbit\",\n \"source_name\":\"Fitbit\",\n \"timestamp\":\"2015-12-01T08:00:00+00:00\",\n \"user_id\":\"53bb08718462SAMPLE000013\",\n \"utc_offset\":\"-08:00\",\n \"validated\":false,\n \"water\":null\n }\n ]\n}", "language": "text", "name": "v1.2016-03-01" } ] } [/block]
added
Expanded data added as key inside standard for Validic-Version: 2016-03-01