{"info":{"_postman_id":"9f08170b-3026-ce96-48a1-61c66e4c4b62","name":"VitaCloud API: Collection","description":"VitaCloud is a cloud-based connected platform that integrates health content in real time, from a vast array of digital health sources. For Health providers who wish to integrate their consumers' digital health footprint into their applications to drive to better outcomes, the VitaCloud API is the single connection point that can provide them easy and convenient access to this data.\n\nVitaCloud tracks metrics that can help build a 360-degree health profile of the user, allowing for better care and treatment. These metrics include both fitness indicators like activity, steps, calories, sleep quality and body fat; and health vitals like heart rate, blood pressure, ECG, blood glucose and oxygen saturation.\n\nIn summary, Health Providers access the VitaCloud API, instead of connecting to hundreds of health devices and applications across their heterogeneous population base. The VitaCloud API serves curated and standardized health data, in an easy to consume format.\n\n\n<h2>Authorization</h2>\n\nThe following types of Authorization are allowed for VitaCloud API. \n\n<h3>Basic</h3>\n\nFor Basic Authorization, Authorization header must be set to Basic followed by a space, then the Base64 encoded string of your application's client id and secret concatenated with a colon. For example, the Base64 encoded string, e3tvcmdpZH19Ont7b3Jnc2VjcmV0fX0=, is decoded as \"{{orgid}}:{{orgsecret}}\".\n\n<h3>Bearer</h3>\n\nFor Bearer Authorization, Authorization header must be set to Bearer followed by a space, then the {{accesstoken}}. Access Token for a user is obtained when the user is created. Access Token must be kept secure on server and never be passed to client side like Web, Android or iOS. \n\n<h3>Open</h3>\n\nFor Open Authorization, Authorization header must be set to Open followed by a space, then the {{opentoken}}. Open Token for a user can be obtained by the get Open token API in User Management Collection. Open token gives access to the users data and expires every one hour. Open token can be used on the client side like Web, Android and iOS with caution.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"User Management: API Reference","item":[{"name":"Create User","event":[{"listen":"test","script":{"type":"text/javascript","exec":["",""]}}],"id":"5e1ce197-7e5a-b7ac-a244-66a9ec013a9a","request":{"auth":{"type":"basic","basic":{"password":"{{orgsecret}}","username":"{{orgid}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"orguserid\" :{{orguserid}}\n}"},"url":"https://{{env}}.vitacloud.io/organization/user/create","description":"Allows you to create a new user for your organization. \n\nRequires 'Basic' Authorization with orgid and orgsecret."},"response":[],"_postman_id":"5e1ce197-7e5a-b7ac-a244-66a9ec013a9a"},{"name":"Get User Information","id":"89554094-666a-f2bf-0ad1-a161f7162307","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{env}}.vitacloud.io/organization/user/info","description":"Provides the vitaid, orguserid and list of connected sources for the end user."},"response":[],"_postman_id":"89554094-666a-f2bf-0ad1-a161f7162307"},{"name":"Remove User","id":"cdec60e2-4eed-9e81-dd42-fad00bbb9d23","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{env}}.vitacloud.io/organization/user/remove","description":"This API Endpoint provides the ability to remove a user from an organization account."},"response":[],"_postman_id":"cdec60e2-4eed-9e81-dd42-fad00bbb9d23"},{"name":"Open Token","id":"6eb42587-ddb9-b9d6-aa30-a3fb388ae00c","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{env}}.vitacloud.io/organization/user/opentoken","description":"This endpoint enables the ability to fetch open token corresponding to a user. The open token is used to query data of a user."},"response":[],"_postman_id":"6eb42587-ddb9-b9d6-aa30-a3fb388ae00c"}],"id":"f2608bd0-bd60-90d3-b047-e09da0510bac","_postman_id":"f2608bd0-bd60-90d3-b047-e09da0510bac"},{"name":"VitaConnect: API Reference","item":[{"name":"Initiate Connection to Digital Source","id":"2c40acfe-7ec4-854f-c815-73be373ee698","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/connect/{{source}}?orgid={{orgid}}&orguserid={{orguserid}}&redirect_uri={{redirect_uri}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["connect","{{source}}"],"query":[{"key":"orgid","value":"{{orgid}}"},{"key":"orguserid","value":"{{orguserid}}"},{"key":"redirect_uri","value":"{{redirect_uri}}"}]},"description":"This API is used to initiate the process of connecting your user to a digital health source. For example, when the user wishes to connect Fitbit to your application, they will be first redirected to FitBit's authentication page. Once they authenticate, they are redirected back to your application with a connection token.\n\n'Note: This step could be executed either via your mobile application (SDK) or web application (REST API)'\n\nMake a HTTP redirect to the below endpoint to initiate​ connection."},"response":[],"_postman_id":"2c40acfe-7ec4-854f-c815-73be373ee698"},{"name":"Verify and Authorize Connection","id":"0c88714b-1207-a49b-1521-97eb79c29d19","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"orgsecret\" : \"{{orgsecret}}\",\n    \"connect_token\": \"{{connect_token}}\"\n}"},"url":"https://{{env}}.vitacloud.io/organization/user/connectsource","description":"This API completes the connection to a digital health source, that was initiated in the previous step. A POST request needs to be sent to VitaCloud at this API endpoint along with the orgsecret and the connection token received from the 'Initiate Connection to Source' step. This will verify and complete the connection. A unique access token will be provided for that user, which will be required for all future requests to VitaCloud.\n\n'Note: This step should be executed via your server (REST API)'"},"response":[],"_postman_id":"0c88714b-1207-a49b-1521-97eb79c29d19"},{"name":"Disconnect Source","id":"aeb29ebf-6735-ab7a-18de-762d3fa43dd2","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"source\":\"{{source}}\"\n}"},"url":"https://{{env}}.vitacloud.io/organization/user/disconnectsource","description":"This API endpoint provides the ability to disconnect a particular source from the end user account."},"response":[],"_postman_id":"aeb29ebf-6735-ab7a-18de-762d3fa43dd2"}],"id":"c91d5891-8457-a6a5-4a5e-992ed953df84","description":"VitaCloud aggregates health and wellness metrics from a variety of data sources and provides them via APIs. Metrics currently aggregated and reported by the VitaCloud platform are listed below. We continue to evolve and augment these metrics with new ones based on our research and requests from our customers.\n\n| Source        | Key           |\n| ------------- |:-------------:|\n| Fitbit\t\t| fitbit\t\t|\n| Jawbone\t\t| jawbone\t\t|\n| Medisana\t\t| medisana\t\t|\n| Withings\t\t| withings\t\t|\n| Runkeeper\t\t| runkeeper\t\t|\n| Misfit\t\t| misfit\t\t|\n| iHealth\t\t| ihealth\t\t|\n| Sony Lifelog\t| sonylifelog\t|\n| Microsoft Health | microsofthealth |\n| Moves app\t\t| movesapp\t\t|\n| Strava\t\t| strava\t\t|\n| Google Fit (SDK) | googlefitsdk |\n| Samsung Health | shealth\t\t|","event":[{"listen":"prerequest","script":{"id":"50b0cebd-20b4-4c8b-b0eb-813f210fded4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fbc8c46a-7520-43d1-8438-48376a31851d","type":"text/javascript","exec":[""]}}],"_postman_id":"c91d5891-8457-a6a5-4a5e-992ed953df84"},{"name":"User Metrics: Data API","item":[{"name":"Activity Summary","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code == 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code == 201) {","    if(postman.getEnvironmentVariable(\"source\")==\"medisana\") {","            tests[\"Metric Not Applicable for this Source\"] = true;","    }","    tests[\"Metric Data Not Available\"] = true;","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 > 0;","        tests[\"Check Steps\"] = jsonData.data.metrics[i].steps > 0;","        if(jsonData.data.metrics[i].hasOwnProperty(\"distance\")){","            tests[\"Check Distance\"] = jsonData.data.metrics[i].distance > 0;","            tests[\"Check Distance Format\"] = Math.round(jsonData.data.metrics[i].distance) === jsonData.data.metrics[i].distance;","        }","        tests[\"Check Calories\"] = jsonData.data.metrics[i].caloriesExpended > 0;","        tests[\"Check Calories Format\"] = Math.round(jsonData.data.metrics[i].caloriesExpended) === jsonData.data.metrics[i].caloriesExpended;","        ","        if (jsonData.data.metrics[i].source!=\"misfit\") {","            tests[\"Check activeTime\"] = jsonData.data.metrics[i].activeTime > 0;","            if(jsonData.data.metrics[i].hasOwnProperty(\"activeTime\"))","            {","                tests[\"Check activeTime Format\"] = Math.round(jsonData.data.metrics[i].activeTime) === jsonData.data.metrics[i].activeTime;","            }","        }","        ","        for (var j = 0; j<jsonData.data.metrics[i].sourceSummary.length; j++){","            if (jsonData.data.metrics[i].source == jsonData.data.metrics[i].sourceSummary[j].source){","                if( jsonData.data.metrics[i].steps > 0)","                {","                    tests[\"Check Steps Data from Source\"] = jsonData.data.metrics[i].steps === jsonData.data.metrics[i].sourceSummary[j].steps;","                } else {","                    if (jsonData.data.metrics[i].steps > 0)","                    {","                        tests[\"Check Steps are highest\"] = jsonData.data.metrics[i].steps > jsonData.data.metrics[i].sourceSummary[j].steps;","                    }","                }","                if (jsonData.data.metrics[i].distance > 0)","                {","                    tests[\"Check Distance Format from source\"] = Math.round(jsonData.data.metrics[i].sourceSummary[j].distance) === jsonData.data.metrics[i].sourceSummary[j].distance;","                }","                if (jsonData.data.metrics[i].caloriesExpended > 0)","                {","                    tests[\"Check Calories Format from source\"] = Math.round(jsonData.data.metrics[i].sourceSummary[j].caloriesExpended) === jsonData.data.metrics[i].sourceSummary[j].caloriesExpended;","                }","                if (jsonData.data.metrics[i].duration > 0)","                {","                    tests[\"Check Duration Format from source\"] = Math.round(jsonData.data.metrics[i].sourceSummary[j].duration) === jsonData.data.metrics[i].sourceSummary[j].duration;","                }","            }","        }","    }","}"]}}],"id":"728abe58-83d6-5a61-fa5c-131ff4dfc3a9","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/activitysummary?startDate={{startdate}}&endDate={{enddate}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","activitysummary"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"source","value":"{{source}}"}]},"description":"'Activity Summary' provides a synopsis of all the activities undertaken by the user over a period of time. Activities are captured automatically by devices and applications, or manually entered by the user in various applications.\n\nThe 'Activity Summary' endpoint provides a summary of all physical activities for a day."},"response":[{"id":"3e35aa63-713c-0713-b2d4-4839f14224af","name":"Steps","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/activitysummary?startDate={{startdate}}&endDate={{enddate}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","activitysummary"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"source","value":"{{source}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"key":"Alt-Svc","value":"clear","name":"Alt-Svc","description":""},{"key":"Content-Length","value":"16582","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 02 Sep 2016 06:52:33 GMT","name":"Date","description":""},{"key":"ETag","value":"W/\"40c6-OUnIkUh2fO6u3onaeeqYZQ\"","name":"ETag","description":""},{"key":"Via","value":"1.1 google","name":"Via","description":""},{"key":"X-RateLimit-Limit","value":"10000","name":"X-RateLimit-Limit","description":""},{"key":"X-RateLimit-Remaining","value":"9995","name":"X-RateLimit-Remaining","description":""},{"key":"X-RateLimit-Reset","value":"1472802104","name":"X-RateLimit-Reset","description":""}],"cookie":[],"responseTime":"171","body":"{\n  \"code\": \"OK\",\n  \"message\": \"Operation is successfully executed\",\n  \"data\": {\n    \"vitaId\": \"9976ec6a-0779-444d-ac7f-e5d66b8a8fa6\",\n    \"metrics\": [\n      {\n        \"date\": 1469817000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"2/vDfDhUGaONCvZ84YHgNIOXXujOCvHvp/HDycG8W0A=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469817000,\n            \"distance\": 3282,\n            \"caloriesExpended\": 2421,\n            \"steps\": 4098\n          }\n        ],\n        \"steps\": 4098,\n        \"distance\": 3282,\n        \"caloriesExpended\": 2421,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1469903400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Y2UjU+TToX6eVeGrUhl22EAbzNZpjK2r4rTDZK5+E04=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469903400,\n            \"distance\": 4048,\n            \"caloriesExpended\": 2445,\n            \"steps\": 5032,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 5032,\n        \"activeTime\": 10,\n        \"distance\": 4048,\n        \"caloriesExpended\": 2445,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1469989800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"6xgqEs0tTFmFayAkGoWD1++bkq+tFbReet+CgSSmiZs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469989800,\n            \"distance\": 8085,\n            \"caloriesExpended\": 2684,\n            \"steps\": 10074,\n            \"activeTime\": 42\n          }\n        ],\n        \"steps\": 10074,\n        \"activeTime\": 42,\n        \"distance\": 8085,\n        \"caloriesExpended\": 2684,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470076200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"1QfA3m9gCBs4ZGRKdSlxXq4bZ9ucsy4UlljuekLlnmM=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470076200,\n            \"distance\": 8281,\n            \"caloriesExpended\": 2693,\n            \"steps\": 10336,\n            \"activeTime\": 31\n          }\n        ],\n        \"steps\": 10336,\n        \"activeTime\": 31,\n        \"distance\": 8281,\n        \"caloriesExpended\": 2693,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470162600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"HmL503xIfHR4BAhe0Hg6U6c7J+Xm4mD8dxaydV/gSEg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470162600,\n            \"distance\": 7991,\n            \"caloriesExpended\": 2603,\n            \"steps\": 9976,\n            \"activeTime\": 31\n          }\n        ],\n        \"steps\": 9976,\n        \"activeTime\": 31,\n        \"distance\": 7991,\n        \"caloriesExpended\": 2603,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470249000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"zaXgmjoAssOQyrTnmmq6wOXiWUzyAgKe2gJr5xzqABs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470249000,\n            \"distance\": 3535,\n            \"caloriesExpended\": 2685,\n            \"steps\": 4388,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 4388,\n        \"activeTime\": 11,\n        \"distance\": 3535,\n        \"caloriesExpended\": 2685,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470335400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"fKeN7IPx8zlLrvXsp58Isfibj0xmhJOhTTx2oVWjaH0=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470335400,\n            \"distance\": 2940,\n            \"caloriesExpended\": 2573,\n            \"steps\": 3660,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 3660,\n        \"activeTime\": 4,\n        \"distance\": 2940,\n        \"caloriesExpended\": 2573,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470421800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"rSgcs7mtnuut7NmEjY0xlcKDdc+jkNcKadFjTDCgxeg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470421800,\n            \"distance\": 3356,\n            \"caloriesExpended\": 2471,\n            \"steps\": 4180,\n            \"activeTime\": 5\n          }\n        ],\n        \"steps\": 4180,\n        \"activeTime\": 5,\n        \"distance\": 3356,\n        \"caloriesExpended\": 2471,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470508200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"7L/7/F0nxmcCbrjAY0VPKDFNhA7hk8QArzvx5Y3nlq0=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470508200,\n            \"distance\": 4092,\n            \"caloriesExpended\": 2745,\n            \"steps\": 5086\n          }\n        ],\n        \"steps\": 5086,\n        \"distance\": 4092,\n        \"caloriesExpended\": 2745,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470594600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Df7t2kpMdP/TBmazS+61PaPoGzjutSuR+cciGxLxqxg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470594600,\n            \"distance\": 4691,\n            \"caloriesExpended\": 2563,\n            \"steps\": 5830,\n            \"activeTime\": 20\n          }\n        ],\n        \"steps\": 5830,\n        \"activeTime\": 20,\n        \"distance\": 4691,\n        \"caloriesExpended\": 2563,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470681000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"78x8UBuBD1CXfcpwmEAmaEflR62LPMdYnD+b9+aeTXs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470681000,\n            \"distance\": 4430,\n            \"caloriesExpended\": 2891,\n            \"steps\": 5522,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 5522,\n        \"activeTime\": 11,\n        \"distance\": 4430,\n        \"caloriesExpended\": 2891,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470767400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"OwOaYyqcVnC8iLQvtV/l+1e0qjjyYPiACxR3dhpOIes=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470767400,\n            \"distance\": 5694,\n            \"caloriesExpended\": 2992,\n            \"steps\": 7112,\n            \"activeTime\": 19\n          }\n        ],\n        \"steps\": 7112,\n        \"activeTime\": 19,\n        \"distance\": 5694,\n        \"caloriesExpended\": 2992,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470853800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"kuo+5QPAy8Z68AuX0JdVFhnbP6fT56otZeQtAzkoRbw=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470853800,\n            \"distance\": 4051,\n            \"caloriesExpended\": 2467,\n            \"steps\": 5036,\n            \"activeTime\": 13\n          }\n        ],\n        \"steps\": 5036,\n        \"activeTime\": 13,\n        \"distance\": 4051,\n        \"caloriesExpended\": 2467,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470940200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"3TbkTkinUTAHIttFGccQxMHAdG9nolFMAQ2R6YJPhOQ=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470940200,\n            \"distance\": 4263,\n            \"caloriesExpended\": 2422,\n            \"steps\": 5318,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 5318,\n        \"activeTime\": 4,\n        \"distance\": 4263,\n        \"caloriesExpended\": 2422,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471026600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"mJO9BRi2bY/iFfO+TrlWdyeyOVih9qc59tseThvT8wU=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471026600,\n            \"distance\": 3318,\n            \"caloriesExpended\": 2442,\n            \"steps\": 4134,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 4134,\n        \"activeTime\": 4,\n        \"distance\": 3318,\n        \"caloriesExpended\": 2442,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471113000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"HCy6ecW/6xaa63jncrv+X7whmDGEwwYs/e+ISGtHoNY=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471113000,\n            \"distance\": 6213,\n            \"caloriesExpended\": 2566,\n            \"steps\": 7748,\n            \"activeTime\": 2\n          }\n        ],\n        \"steps\": 7748,\n        \"activeTime\": 2,\n        \"distance\": 6213,\n        \"caloriesExpended\": 2566,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471199400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"wLcqGaZJHVsmS5FTuiOAQ/G31VFBw9J6x+cbcFwsnPg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471199400,\n            \"distance\": 2928,\n            \"caloriesExpended\": 2743,\n            \"steps\": 3646,\n            \"activeTime\": 6\n          }\n        ],\n        \"steps\": 3646,\n        \"activeTime\": 6,\n        \"distance\": 2928,\n        \"caloriesExpended\": 2743,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471285800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"bxbcBCIX61zJfCd4fyalhL7B2G+F4ASYERpLpZDAcyA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471285800,\n            \"distance\": 2102,\n            \"caloriesExpended\": 2405,\n            \"steps\": 2628,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 2628,\n        \"activeTime\": 7,\n        \"distance\": 2102,\n        \"caloriesExpended\": 2405,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471458600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"34nhZQYQX4tqUl2sika8WiEo7Za2GQ5oegT0KVwym5w=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471458600,\n            \"distance\": 3712,\n            \"caloriesExpended\": 2615,\n            \"steps\": 4636,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 4636,\n        \"activeTime\": 7,\n        \"distance\": 3712,\n        \"caloriesExpended\": 2615,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471545000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"NFL7OBjhpIeJ8WSwJ/8ifU4JF0hRSNHHSdfhY3ImETw=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471545000,\n            \"distance\": 3323,\n            \"caloriesExpended\": 2463,\n            \"steps\": 4138,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 4138,\n        \"activeTime\": 10,\n        \"distance\": 3323,\n        \"caloriesExpended\": 2463,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471631400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"ZKMy8mBX7yj4KBc8hXTjSzIQLkS8i53iZIPzs01L5gA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471631400,\n            \"distance\": 5202,\n            \"caloriesExpended\": 2589,\n            \"steps\": 6486,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 6486,\n        \"activeTime\": 7,\n        \"distance\": 5202,\n        \"caloriesExpended\": 2589,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471804200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"mHRMN0QtaCuYWtdRghJJXwODOVj7msbine5oB4Ed+2k=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471804200,\n            \"distance\": 4514,\n            \"caloriesExpended\": 2728,\n            \"steps\": 5616,\n            \"activeTime\": 13\n          }\n        ],\n        \"steps\": 5616,\n        \"activeTime\": 13,\n        \"distance\": 4514,\n        \"caloriesExpended\": 2728,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471890600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"KMy1dgcRdRTMPHMte2qezsSb6jQugLQlHDd9WKvRRuM=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471890600,\n            \"distance\": 4505,\n            \"caloriesExpended\": 2859,\n            \"steps\": 5602\n          }\n        ],\n        \"steps\": 5602,\n        \"distance\": 4505,\n        \"caloriesExpended\": 2859,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471977000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"0bZYiaBa/BWMAz/lBi/gNFYGrNNS2AuX3ki5a/q/sMA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471977000,\n            \"distance\": 3446,\n            \"caloriesExpended\": 2877,\n            \"steps\": 4298,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4298,\n        \"activeTime\": 14,\n        \"distance\": 3446,\n        \"caloriesExpended\": 2877,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472063400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Qohov9iONtMR72XTdfrfrwwd38SP+HW1cpDWb3Gj1Kg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472063400,\n            \"distance\": 3687,\n            \"caloriesExpended\": 2590,\n            \"steps\": 4600,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4600,\n        \"activeTime\": 14,\n        \"distance\": 3687,\n        \"caloriesExpended\": 2590,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472149800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"AGiQ9dNbOX1TgXoA+LvHlh09XhMT+bR6ma+5oLDGhOg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472149800,\n            \"distance\": 4057,\n            \"caloriesExpended\": 2506,\n            \"steps\": 5048,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 5048,\n        \"activeTime\": 11,\n        \"distance\": 4057,\n        \"caloriesExpended\": 2506,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472236200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"kkFDpL3ZHT15CeO2aPys4VKbzX/PsKmDzyyS5JMpU4M=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472236200,\n            \"distance\": 3655,\n            \"caloriesExpended\": 3249,\n            \"steps\": 4550,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 4550,\n        \"activeTime\": 10,\n        \"distance\": 3655,\n        \"caloriesExpended\": 3249,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472322600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Vhd6i6cNpu0S3ldk6/m6JIXojmdoJ0oAhRQqDySEKso=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472322600,\n            \"distance\": 4206,\n            \"caloriesExpended\": 2545,\n            \"steps\": 5226,\n            \"activeTime\": 1\n          }\n        ],\n        \"steps\": 5226,\n        \"activeTime\": 1,\n        \"distance\": 4206,\n        \"caloriesExpended\": 2545,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472409000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"CQ8vS4ZnsIQUeQJdwaAnOfCp6tI9IB0TbewObbyiAWs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472409000,\n            \"distance\": 4733,\n            \"caloriesExpended\": 2664,\n            \"steps\": 5886,\n            \"activeTime\": 9\n          }\n        ],\n        \"steps\": 5886,\n        \"activeTime\": 9,\n        \"distance\": 4733,\n        \"caloriesExpended\": 2664,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472495400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"RMgEZKJBdS4JUBolTmXhAZ/CN9GHVo7WXAszPKsizg8=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472495400,\n            \"distance\": 3977,\n            \"caloriesExpended\": 2666,\n            \"steps\": 4934,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4934,\n        \"activeTime\": 14,\n        \"distance\": 3977,\n        \"caloriesExpended\": 2666,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472581800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"vp5+sdU/Uf8N70cZ3kVNPSRob6knpWA87CAss5bU5x8=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472581800,\n            \"distance\": 4343,\n            \"caloriesExpended\": 2744,\n            \"steps\": 5410,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 5410,\n        \"activeTime\": 10,\n        \"distance\": 4343,\n        \"caloriesExpended\": 2744,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472668200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"oxBzGoroEDrt0NBm1xrqm+H9H7U8/FM+oY9VfK2vg94=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472668200,\n            \"distance\": 3847,\n            \"caloriesExpended\": 2449,\n            \"steps\": 4802,\n            \"activeTime\": 9\n          }\n        ],\n        \"steps\": 4802,\n        \"activeTime\": 9,\n        \"distance\": 3847,\n        \"caloriesExpended\": 2449,\n        \"source\": \"microsofthealth\"\n      }\n    ]\n  }\n}"},{"id":"f6d29654-319e-6089-b744-a351c1bee49c","name":"Steps","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accesstoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/activitysummary?startDate={{startdate}}&endDate={{enddate}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","activitysummary"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"source","value":"{{source}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"javascript","header":[{"key":"Alt-Svc","value":"clear","name":"Alt-Svc","description":""},{"key":"Content-Length","value":"16582","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 02 Sep 2016 06:52:33 GMT","name":"Date","description":""},{"key":"ETag","value":"W/\"40c6-OUnIkUh2fO6u3onaeeqYZQ\"","name":"ETag","description":""},{"key":"Via","value":"1.1 google","name":"Via","description":""},{"key":"X-RateLimit-Limit","value":"10000","name":"X-RateLimit-Limit","description":""},{"key":"X-RateLimit-Remaining","value":"9995","name":"X-RateLimit-Remaining","description":""},{"key":"X-RateLimit-Reset","value":"1472802104","name":"X-RateLimit-Reset","description":""}],"cookie":[],"responseTime":"171","body":"{\n  \"code\": \"OK\",\n  \"message\": \"Operation is successfully executed\",\n  \"data\": {\n    \"vitaId\": \"9976ec6a-0779-444d-ac7f-e5d66b8a8fa6\",\n    \"metrics\": [\n      {\n        \"date\": 1469817000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"2/vDfDhUGaONCvZ84YHgNIOXXujOCvHvp/HDycG8W0A=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469817000,\n            \"distance\": 3282,\n            \"caloriesExpended\": 2421,\n            \"steps\": 4098\n          }\n        ],\n        \"steps\": 4098,\n        \"distance\": 3282,\n        \"caloriesExpended\": 2421,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1469903400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Y2UjU+TToX6eVeGrUhl22EAbzNZpjK2r4rTDZK5+E04=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469903400,\n            \"distance\": 4048,\n            \"caloriesExpended\": 2445,\n            \"steps\": 5032,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 5032,\n        \"activeTime\": 10,\n        \"distance\": 4048,\n        \"caloriesExpended\": 2445,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1469989800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"6xgqEs0tTFmFayAkGoWD1++bkq+tFbReet+CgSSmiZs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1469989800,\n            \"distance\": 8085,\n            \"caloriesExpended\": 2684,\n            \"steps\": 10074,\n            \"activeTime\": 42\n          }\n        ],\n        \"steps\": 10074,\n        \"activeTime\": 42,\n        \"distance\": 8085,\n        \"caloriesExpended\": 2684,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470076200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"1QfA3m9gCBs4ZGRKdSlxXq4bZ9ucsy4UlljuekLlnmM=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470076200,\n            \"distance\": 8281,\n            \"caloriesExpended\": 2693,\n            \"steps\": 10336,\n            \"activeTime\": 31\n          }\n        ],\n        \"steps\": 10336,\n        \"activeTime\": 31,\n        \"distance\": 8281,\n        \"caloriesExpended\": 2693,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470162600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"HmL503xIfHR4BAhe0Hg6U6c7J+Xm4mD8dxaydV/gSEg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470162600,\n            \"distance\": 7991,\n            \"caloriesExpended\": 2603,\n            \"steps\": 9976,\n            \"activeTime\": 31\n          }\n        ],\n        \"steps\": 9976,\n        \"activeTime\": 31,\n        \"distance\": 7991,\n        \"caloriesExpended\": 2603,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470249000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"zaXgmjoAssOQyrTnmmq6wOXiWUzyAgKe2gJr5xzqABs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470249000,\n            \"distance\": 3535,\n            \"caloriesExpended\": 2685,\n            \"steps\": 4388,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 4388,\n        \"activeTime\": 11,\n        \"distance\": 3535,\n        \"caloriesExpended\": 2685,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470335400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"fKeN7IPx8zlLrvXsp58Isfibj0xmhJOhTTx2oVWjaH0=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470335400,\n            \"distance\": 2940,\n            \"caloriesExpended\": 2573,\n            \"steps\": 3660,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 3660,\n        \"activeTime\": 4,\n        \"distance\": 2940,\n        \"caloriesExpended\": 2573,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470421800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"rSgcs7mtnuut7NmEjY0xlcKDdc+jkNcKadFjTDCgxeg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470421800,\n            \"distance\": 3356,\n            \"caloriesExpended\": 2471,\n            \"steps\": 4180,\n            \"activeTime\": 5\n          }\n        ],\n        \"steps\": 4180,\n        \"activeTime\": 5,\n        \"distance\": 3356,\n        \"caloriesExpended\": 2471,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470508200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"7L/7/F0nxmcCbrjAY0VPKDFNhA7hk8QArzvx5Y3nlq0=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470508200,\n            \"distance\": 4092,\n            \"caloriesExpended\": 2745,\n            \"steps\": 5086\n          }\n        ],\n        \"steps\": 5086,\n        \"distance\": 4092,\n        \"caloriesExpended\": 2745,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470594600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Df7t2kpMdP/TBmazS+61PaPoGzjutSuR+cciGxLxqxg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470594600,\n            \"distance\": 4691,\n            \"caloriesExpended\": 2563,\n            \"steps\": 5830,\n            \"activeTime\": 20\n          }\n        ],\n        \"steps\": 5830,\n        \"activeTime\": 20,\n        \"distance\": 4691,\n        \"caloriesExpended\": 2563,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470681000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"78x8UBuBD1CXfcpwmEAmaEflR62LPMdYnD+b9+aeTXs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470681000,\n            \"distance\": 4430,\n            \"caloriesExpended\": 2891,\n            \"steps\": 5522,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 5522,\n        \"activeTime\": 11,\n        \"distance\": 4430,\n        \"caloriesExpended\": 2891,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470767400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"OwOaYyqcVnC8iLQvtV/l+1e0qjjyYPiACxR3dhpOIes=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470767400,\n            \"distance\": 5694,\n            \"caloriesExpended\": 2992,\n            \"steps\": 7112,\n            \"activeTime\": 19\n          }\n        ],\n        \"steps\": 7112,\n        \"activeTime\": 19,\n        \"distance\": 5694,\n        \"caloriesExpended\": 2992,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470853800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"kuo+5QPAy8Z68AuX0JdVFhnbP6fT56otZeQtAzkoRbw=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470853800,\n            \"distance\": 4051,\n            \"caloriesExpended\": 2467,\n            \"steps\": 5036,\n            \"activeTime\": 13\n          }\n        ],\n        \"steps\": 5036,\n        \"activeTime\": 13,\n        \"distance\": 4051,\n        \"caloriesExpended\": 2467,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1470940200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"3TbkTkinUTAHIttFGccQxMHAdG9nolFMAQ2R6YJPhOQ=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1470940200,\n            \"distance\": 4263,\n            \"caloriesExpended\": 2422,\n            \"steps\": 5318,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 5318,\n        \"activeTime\": 4,\n        \"distance\": 4263,\n        \"caloriesExpended\": 2422,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471026600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"mJO9BRi2bY/iFfO+TrlWdyeyOVih9qc59tseThvT8wU=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471026600,\n            \"distance\": 3318,\n            \"caloriesExpended\": 2442,\n            \"steps\": 4134,\n            \"activeTime\": 4\n          }\n        ],\n        \"steps\": 4134,\n        \"activeTime\": 4,\n        \"distance\": 3318,\n        \"caloriesExpended\": 2442,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471113000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"HCy6ecW/6xaa63jncrv+X7whmDGEwwYs/e+ISGtHoNY=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471113000,\n            \"distance\": 6213,\n            \"caloriesExpended\": 2566,\n            \"steps\": 7748,\n            \"activeTime\": 2\n          }\n        ],\n        \"steps\": 7748,\n        \"activeTime\": 2,\n        \"distance\": 6213,\n        \"caloriesExpended\": 2566,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471199400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"wLcqGaZJHVsmS5FTuiOAQ/G31VFBw9J6x+cbcFwsnPg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471199400,\n            \"distance\": 2928,\n            \"caloriesExpended\": 2743,\n            \"steps\": 3646,\n            \"activeTime\": 6\n          }\n        ],\n        \"steps\": 3646,\n        \"activeTime\": 6,\n        \"distance\": 2928,\n        \"caloriesExpended\": 2743,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471285800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"bxbcBCIX61zJfCd4fyalhL7B2G+F4ASYERpLpZDAcyA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471285800,\n            \"distance\": 2102,\n            \"caloriesExpended\": 2405,\n            \"steps\": 2628,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 2628,\n        \"activeTime\": 7,\n        \"distance\": 2102,\n        \"caloriesExpended\": 2405,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471458600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"34nhZQYQX4tqUl2sika8WiEo7Za2GQ5oegT0KVwym5w=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471458600,\n            \"distance\": 3712,\n            \"caloriesExpended\": 2615,\n            \"steps\": 4636,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 4636,\n        \"activeTime\": 7,\n        \"distance\": 3712,\n        \"caloriesExpended\": 2615,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471545000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"NFL7OBjhpIeJ8WSwJ/8ifU4JF0hRSNHHSdfhY3ImETw=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471545000,\n            \"distance\": 3323,\n            \"caloriesExpended\": 2463,\n            \"steps\": 4138,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 4138,\n        \"activeTime\": 10,\n        \"distance\": 3323,\n        \"caloriesExpended\": 2463,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471631400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"ZKMy8mBX7yj4KBc8hXTjSzIQLkS8i53iZIPzs01L5gA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471631400,\n            \"distance\": 5202,\n            \"caloriesExpended\": 2589,\n            \"steps\": 6486,\n            \"activeTime\": 7\n          }\n        ],\n        \"steps\": 6486,\n        \"activeTime\": 7,\n        \"distance\": 5202,\n        \"caloriesExpended\": 2589,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471804200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"mHRMN0QtaCuYWtdRghJJXwODOVj7msbine5oB4Ed+2k=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471804200,\n            \"distance\": 4514,\n            \"caloriesExpended\": 2728,\n            \"steps\": 5616,\n            \"activeTime\": 13\n          }\n        ],\n        \"steps\": 5616,\n        \"activeTime\": 13,\n        \"distance\": 4514,\n        \"caloriesExpended\": 2728,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471890600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"KMy1dgcRdRTMPHMte2qezsSb6jQugLQlHDd9WKvRRuM=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471890600,\n            \"distance\": 4505,\n            \"caloriesExpended\": 2859,\n            \"steps\": 5602\n          }\n        ],\n        \"steps\": 5602,\n        \"distance\": 4505,\n        \"caloriesExpended\": 2859,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1471977000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"0bZYiaBa/BWMAz/lBi/gNFYGrNNS2AuX3ki5a/q/sMA=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1471977000,\n            \"distance\": 3446,\n            \"caloriesExpended\": 2877,\n            \"steps\": 4298,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4298,\n        \"activeTime\": 14,\n        \"distance\": 3446,\n        \"caloriesExpended\": 2877,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472063400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Qohov9iONtMR72XTdfrfrwwd38SP+HW1cpDWb3Gj1Kg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472063400,\n            \"distance\": 3687,\n            \"caloriesExpended\": 2590,\n            \"steps\": 4600,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4600,\n        \"activeTime\": 14,\n        \"distance\": 3687,\n        \"caloriesExpended\": 2590,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472149800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"AGiQ9dNbOX1TgXoA+LvHlh09XhMT+bR6ma+5oLDGhOg=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472149800,\n            \"distance\": 4057,\n            \"caloriesExpended\": 2506,\n            \"steps\": 5048,\n            \"activeTime\": 11\n          }\n        ],\n        \"steps\": 5048,\n        \"activeTime\": 11,\n        \"distance\": 4057,\n        \"caloriesExpended\": 2506,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472236200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"kkFDpL3ZHT15CeO2aPys4VKbzX/PsKmDzyyS5JMpU4M=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472236200,\n            \"distance\": 3655,\n            \"caloriesExpended\": 3249,\n            \"steps\": 4550,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 4550,\n        \"activeTime\": 10,\n        \"distance\": 3655,\n        \"caloriesExpended\": 3249,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472322600,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"Vhd6i6cNpu0S3ldk6/m6JIXojmdoJ0oAhRQqDySEKso=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472322600,\n            \"distance\": 4206,\n            \"caloriesExpended\": 2545,\n            \"steps\": 5226,\n            \"activeTime\": 1\n          }\n        ],\n        \"steps\": 5226,\n        \"activeTime\": 1,\n        \"distance\": 4206,\n        \"caloriesExpended\": 2545,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472409000,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"CQ8vS4ZnsIQUeQJdwaAnOfCp6tI9IB0TbewObbyiAWs=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472409000,\n            \"distance\": 4733,\n            \"caloriesExpended\": 2664,\n            \"steps\": 5886,\n            \"activeTime\": 9\n          }\n        ],\n        \"steps\": 5886,\n        \"activeTime\": 9,\n        \"distance\": 4733,\n        \"caloriesExpended\": 2664,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472495400,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"RMgEZKJBdS4JUBolTmXhAZ/CN9GHVo7WXAszPKsizg8=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472495400,\n            \"distance\": 3977,\n            \"caloriesExpended\": 2666,\n            \"steps\": 4934,\n            \"activeTime\": 14\n          }\n        ],\n        \"steps\": 4934,\n        \"activeTime\": 14,\n        \"distance\": 3977,\n        \"caloriesExpended\": 2666,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472581800,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"vp5+sdU/Uf8N70cZ3kVNPSRob6knpWA87CAss5bU5x8=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472581800,\n            \"distance\": 4343,\n            \"caloriesExpended\": 2744,\n            \"steps\": 5410,\n            \"activeTime\": 10\n          }\n        ],\n        \"steps\": 5410,\n        \"activeTime\": 10,\n        \"distance\": 4343,\n        \"caloriesExpended\": 2744,\n        \"source\": \"microsofthealth\"\n      },\n      {\n        \"date\": 1472668200,\n        \"sourceSummary\": [\n          {\n            \"dataId\": \"oxBzGoroEDrt0NBm1xrqm+H9H7U8/FM+oY9VfK2vg94=\",\n            \"source\": \"microsofthealth\",\n            \"date\": 1472668200,\n            \"distance\": 3847,\n            \"caloriesExpended\": 2449,\n            \"steps\": 4802,\n            \"activeTime\": 9\n          }\n        ],\n        \"steps\": 4802,\n        \"activeTime\": 9,\n        \"distance\": 3847,\n        \"caloriesExpended\": 2449,\n        \"source\": \"microsofthealth\"\n      }\n    ]\n  }\n}"}],"_postman_id":"728abe58-83d6-5a61-fa5c-131ff4dfc3a9"},{"name":"Sleep Summary","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code == 201) {","    if(postman.getEnvironmentVariable(\"source\")==\"medisana\") {","            tests[\"Metric Not Applicable for this Source\"] = true;","    }","    tests[\"Metric Data Not Available\"] = true;","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Sleep Duration\"] = jsonData.data.metrics[i].sleepDuration > 0;","        for (var j = 0; j < jsonData.data.metrics[i].sourceSummary.length; j++) {","            if (jsonData.data.metrics[i].source == jsonData.data.metrics[i].sourceSummary[j].source) {","            tests[\"Check Sleep Duration by source\"] = jsonData.data.metrics[i].sleepDuration === jsonData.data.metrics[i].sourceSummary[j].sleepDuration;","            }","        }","       ","    }","}"]}}],"id":"7f687ce1-9350-bd10-ace5-ce3de310ae53","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/sleepsummary?startDate={{startdate}}&endDate={{enddate}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","sleepsummary"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"source","value":"{{source}}"}]},"description":"Sleep Summary provides a daily summary of sleep sessions of a user. Sleep summary includes - total sleep duration, light sleep, deep sleep and awake time"},"response":[],"_postman_id":"7f687ce1-9350-bd10-ace5-ce3de310ae53"},{"name":"Heart Rate - Resting","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code === 201) {","    var sourceTest = [\"jawbone\",\"misfit\",\"googlefit\",\"runkeeper\",\"withings\",\"medisana\"]","    for(i=0;i<sourceTest.length;i++) {","        if (postman.getEnvironmentVariable(\"source\") === sourceTest[i]){","            tests[\"Metric Not Applicable for this Source\"] = true;","        }","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Resting Heartrate\"] = jsonData.data.metrics[i].restingHr > 0;","    }","}"]}}],"id":"fac9742b-a39a-a039-43bf-86d015924ffc","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/restinghr?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","restinghr"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Resting heart rate is the number of times the heart beats per minute when at rest. The heart rate is typically measured using a heart rate monitor or activity trackers with heart rate modules."},"response":[],"_postman_id":"fac9742b-a39a-a039-43bf-86d015924ffc"},{"name":"Activity","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code == 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code == 201) {","    if(postman.getEnvironmentVariable(\"source\")==\"medisana\") {","            tests[\"Metric Not Applicable for this Source\"] = true;","    }","    if (postman.getEnvironmentVariable(\"source\")==\"jawbone\" || postman.getEnvironmentVariable(\"source\") ==\"fitbit\") {","        tests[\"Metric Data Not Available\"] = false;","    } else {","        tests[\"Metric Data Not Available\"] = true;","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 > 0;","        if(jsonData.data.metrics[i].hasOwnProperty(\"steps\")){","            tests[\"Check Steps\"] = jsonData.data.metrics[i].steps > 0;","        }","        if(jsonData.data.metrics[i].hasOwnProperty(\"distance\")){","            tests[\"Check Distance\"] = jsonData.data.metrics[i].distance > 0;","            tests[\"Check Distance Format\"] = Math.round(jsonData.data.metrics[i].distance) === jsonData.data.metrics[i].distance;","        }","        tests[\"Check Calories\"] = jsonData.data.metrics[i].caloriesExpended > 0;","        tests[\"Check Calories Format\"] = Math.round(jsonData.data.metrics[i].caloriesExpended) === jsonData.data.metrics[i].caloriesExpended;","        ","        if(jsonData.data.metrics[i].hasOwnProperty(\"activeTime\")) {","            tests[\"Check ActiveTime\"] = jsonData.data.metrics[i].activeTime > 0;","            tests[\"Check ActiveTime Format\"] = Math.round(jsonData.data.metrics[i].activeTime) === jsonData.data.metrics[i].activeTime;","        }","    }","}"]}}],"id":"fe836e2f-7616-bd48-0730-13abc48fcdf8","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/activitysummary?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","activitysummary"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Activities are defined types of physical activity performed by the user. Activities are captured automatically by devices and applications, or manually entered by the user in various applications.\n\nDevices and applications generally aggregate activities into specific sessions. The 'Activities' endpoint provides a collection of these activity sessions, identified by the source (device/app) where the data is generated from.\n\nAutomated activities greater than 10 minutes are returned in case of Google Fit, Moves-app, Sony Lifelog and Misfit."},"response":[],"_postman_id":"fe836e2f-7616-bd48-0730-13abc48fcdf8"},{"name":"Blood Glucose","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code === 201) {","    var sourceTest = [\"fitbit\",\"fitbit\",\"misfit\",\"jawbone\",\"runkeeper\"]","    for(i=0;i<sourceTest.length;i++) {","        if (postman.getEnvironmentVariable(\"source\") === sourceTest[i]){","            tests[\"Metric Not Applicable for this Source\"] = true;","        }","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Blood Glucose\"] = jsonData.data.metrics[i].bloodGlucose > 0;","       ","    }","}"]}}],"id":"46b192a0-1aa0-7db7-a24f-82db7304d166","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/bloodglucose?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","bloodglucose"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Blood Glucose is a measure of the amount of glucose present in human blood. It is usually measured using a Blood Glucose Monitor. Blood Glucose may be recorded automatically by devices or entered manually by the user in various applications."},"response":[],"_postman_id":"46b192a0-1aa0-7db7-a24f-82db7304d166"},{"name":"Blood Pressure","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code === 201) {","    var sourceTest = [\"fitbit\",\"jawbone\",\"misfit\",\"googlefit\",\"runkeeper\"]","    for(i=0;i<sourceTest.length;i++) {","        if (postman.getEnvironmentVariable(\"source\") === sourceTest[i]){","            tests[\"Metric Not Applicable for this Source\"] = true;","        }","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Blood Pressure - Systolic\"] = jsonData.data.metrics[i].systolic > 0;","        tests[\"Check Blood Pressure - Diastolic\"] = jsonData.data.metrics[i].diastolic > 0;","        tests[\"Check Blood Pressure - Pulse\"] = jsonData.data.metrics[i].pulse > 0;","        tests[\"Check Blood Pressure - Correct Format\"] = jsonData.data.metrics[i].systolic > jsonData.data.metrics[i].diastolic;","       ","    }","}"]}}],"id":"dab726a2-1634-a513-733e-31a7039a19fe","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/bloodpressure?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","bloodpressure"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Blood Pressure is pressure exerted by blood on the walls of the blood vessels. It is usually measured using a Blood Pressure Monitor. Blood pressure may be recorded automatically by devices or entered manually by the user in various applications."},"response":[],"_postman_id":"dab726a2-1634-a513-733e-31a7039a19fe"},{"name":"Body Composition","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code == 201) {","    tests[\"Metric Data Not Available\"] = false;","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Body Composition - weight\"] = jsonData.data.metrics[i].weight > 0;","        tests[\"Check Body Composition - weight Round off\"] = Math.round(jsonData.data.metrics[i].weight,2) === jsonData.data.metrics[i].weight;","        if((postman.getEnvironmentVariable(\"source\") == \"fitbit\") || (postman.getEnvironmentVariable(\"source\") ==\"jawbone\") || (postman.getEnvironmentVariable(\"source\") == \"withings\")) {","            tests[\"Check Body Composition - fat\"] = jsonData.data.metrics[i].fat > 0;","        if((postman.getEnvironmentVariable(\"source\") == \"fitbit\") || (postman.getEnvironmentVariable(\"source\") == \"withings\")) {","        tests[\"Check Body Composition - height\"] = jsonData.data.metrics[i].height > 0;","        tests[\"Check Body Composition - bmi\"] = jsonData.data.metrics[i].bmi > 0;","        tests[\"Check Body Composition - water\"] = jsonData.data.metrics[i].water > 0;","        }","        }","    }","}"]}}],"id":"0d25b25a-9364-271a-0571-c8ce54a7febd","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/body?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","body"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Body composition provides measurements related to weight, BMI, BMR, fat percentage and water percentage. Body Composition is typically measured using a Smart Body Scale or a Body Analyser. Body composition may be recorded automatically by devices or entered manually by the user in various applications."},"response":[],"_postman_id":"0d25b25a-9364-271a-0571-c8ce54a7febd"},{"name":"Heart Rate","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code === 201) {","    if(postman.getEnvironmentVariable(\"source\")==\"medisana\") {","            tests[\"Metric Not Applicable for this Source\"] = true;","    }","}","if (responseCode.code === 201) {","    var sourceTest = [\"fitbit\",\"misfit\",\"jawbone\",\"runkeeper\"]","    for(i=0;i<sourceTest.length;i++) {","        if (postman.getEnvironmentVariable(\"source\") === sourceTest[i]){","            tests[\"Metric Not Applicable for this Source\"] = true;","        }","    }","}"]}}],"id":"0b988c10-b0af-8379-ffbb-be960da46eed","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/heartrate?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","heartrate"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Heart Rate is the speed of the heartbeat measured by the number of contractions of the heart per minute (bpm). The heart rate is typically measured using a heart rate monitor or apps and devices which measure heart rate in addition to other health parameters like SPO2, blood pressure etc. Heart Rate may be recorded automatically by devices or entered manually by the user in various applications.\n\nThis end point provides a collection of heart rate readings from various sources"},"response":[],"_postman_id":"0b988c10-b0af-8379-ffbb-be960da46eed"},{"name":"Oxygen Saturation (spo2)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code === 201) {","    var sourceTest = [\"fitbit\",\"misfit\",\"jawbone\",\"googlefit\",\"runkeeper\",\"medisana\",\"withings\"]","    for(i=0;i<sourceTest.length;i++) {","        if (postman.getEnvironmentVariable(\"source\") === sourceTest[i]){","            tests[\"Metric Not Applicable for this Source\"] = true;","        }","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 >0;","        tests[\"Check Oxygen Saturation\"] = jsonData.data.metrics[i].spo2 > 0;","        tests[\"Check Oxygen Saturation within range\"] = jsonData.data.metrics[i].spo2 < 100 && jsonData.data.metrics[i].spo2 > 0;","        tests[\"Check Oxygen Saturation\"] = jsonData.data.metrics[i].pulse > 0;","       ","    }","}"]}}],"id":"cf18ab4a-4a6b-e8d1-e6c2-72049b993db8","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/spo2?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","spo2"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]},"description":"Oxygen Saturation is the measurement of the concentration of oxygen in the blood. It is usually measured using a pulse oximeter. Oxygen Saturation may be recorded automatically by devices or entered manually by the user in various applications."},"response":[],"_postman_id":"cf18ab4a-4a6b-e8d1-e6c2-72049b993db8"},{"name":"Lipid","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code == 400) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Response\"] = jsonData.data === \"required parameters missing\";","}","if (responseCode.code == 401) {","    var jsonData = JSON.parse(responseBody);","    tests[\"Check Source and Scope\"] = jsonData.data === \"Wrong Source or Scope\";","}","if (responseCode.code == 201) {","    if(postman.getEnvironmentVariable(\"source\")==\"medisana\") {","            tests[\"Metric Not Applicable for this Source\"] = true;","    }","    if (postman.getEnvironmentVariable(\"source\")==\"jawbone\" || postman.getEnvironmentVariable(\"source\") ==\"fitbit\") {","        tests[\"Metric Data Not Available\"] = false;","    } else {","        tests[\"Metric Data Not Available\"] = true;","    }","}","if(responseCode.code == 200){","    var jsonData = JSON.parse(responseBody);","    for (var i=0; i<jsonData.data.metrics.length; i++) {","        tests[\"Check Date\"] = jsonData.data.metrics.date/10^10 > 0;","        if(jsonData.data.metrics[i].hasOwnProperty(\"steps\")){","            tests[\"Check Steps\"] = jsonData.data.metrics[i].steps > 0;","        }","        if(jsonData.data.metrics[i].hasOwnProperty(\"distance\")){","            tests[\"Check Distance\"] = jsonData.data.metrics[i].distance > 0;","            tests[\"Check Distance Format\"] = Math.round(jsonData.data.metrics[i].distance) === jsonData.data.metrics[i].distance;","        }","        tests[\"Check Calories\"] = jsonData.data.metrics[i].caloriesExpended > 0;","        tests[\"Check Calories Format\"] = Math.round(jsonData.data.metrics[i].caloriesExpended) === jsonData.data.metrics[i].caloriesExpended;","        ","        if(jsonData.data.metrics[i].hasOwnProperty(\"activeTime\")) {","            tests[\"Check ActiveTime\"] = jsonData.data.metrics[i].activeTime > 0;","            tests[\"Check ActiveTime Format\"] = Math.round(jsonData.data.metrics[i].activeTime) === jsonData.data.metrics[i].activeTime;","        }","    }","}"]}}],"id":"1f39da08-ef30-0bc8-c493-e8ee9785d980","request":{"method":"GET","header":[{"key":"Authorization","value":"Open {{opentoken}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://{{env}}.vitacloud.io/data/lipid?startDate={{startdate}}&endDate={{enddate}}&extraInfo={{extrainfo}}&source={{source}}","protocol":"https","host":["{{env}}","vitacloud","io"],"path":["data","lipid"],"query":[{"key":"startDate","value":"{{startdate}}"},{"key":"endDate","value":"{{enddate}}"},{"key":"extraInfo","value":"{{extrainfo}}"},{"key":"source","value":"{{source}}"}]}},"response":[],"_postman_id":"1f39da08-ef30-0bc8-c493-e8ee9785d980"}],"id":"e0fb2d4e-c4a6-cfee-859e-53cd005cdfdc","description":"VitaCloud aggregates health and wellness metrics from a variety of data sources and provides them via APIs. Metrics currently aggregated and reported by the VitaCloud platform are listed below. We continue to evolve and augment these metrics with new ones based on our research and requests from our customers.","event":[{"listen":"prerequest","script":{"id":"5ffcb18b-e0bf-49b8-b77d-f72815dfb35c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3f77901f-0aea-4e82-8da0-492a31bf5501","type":"text/javascript","exec":[""]}}],"_postman_id":"e0fb2d4e-c4a6-cfee-859e-53cd005cdfdc"},{"name":"Data Privacy and Security","item":[],"id":"c64f8e22-ba41-9cf8-4adf-030550db8e40","description":"<h2>Data Privacy</h2>\nThe VitaCloud API is governed by our data privacy policy.\n\nThis data privacy policy explains how we collect, use, share, disclose and protect personal information about the users of the services. Data privacy and security are the key tenets that form the foundation of the VitaCloud platform. As such, VitaCloud collects only that information for which the end user has explicitly provided us permission to do so.\n\nThe Information we collect may include Personal Identifiable Information or Personal Health Information that includes, but is not limited to name, date of birth, gender, address, contact information or health information like physical, physiological and mental health condition through the data sources.\n\nAll such data is stored or transported in compliance with applicable health care privacy and security rules and our contractual obligations with our customers.\n\nVitaCloud shares end user data collected on behalf of the customers upon explicit permission from the end user. The end user may at any time revoke the permission. No data will be shared with the customer after the end user has revoked access.\n\n<h2>Data Security</h2>\nVitaCloud uses a multi-pronged data security strategy. Our security standards define measures for both data at rest and data in motion.\n\n<h3>Data at Rest</h3>\nVitaCloud stores data in a password protected environment. These environments use multi-pronged strategy of physical, access control and encryption for security and protection. We have regular data backup, audit controls, access controls, and some data encryption for data at rest.\n\n<h3>Data Transmission</h3>\nAny communication to, from and within the VitaCloud platform uses secure protocol. We constantly monitor our certificates for expiry and replace them as needed. We also constantly monitor our logs for security events and have protocols to deal with any malicious activity.\n\nAny communication with our API uses HTTPS. We recommend that you use the same method right up to delivery of data to your end user.\n\n<h3>Logging</h3>\nAll data requests, access events and responses are logged to review as and when required.\n\n","_postman_id":"c64f8e22-ba41-9cf8-4adf-030550db8e40"},{"name":"Date and Time Format","item":[],"id":"b4c8e284-b267-4232-75e0-caa3ee2327b0","description":"VitaCloud uses and advocates using date and time in Epoch Format. To learn more about Epoch use the following link http://www.epochconverter.com\n\nThe startDate and endDate query parameters should be expressed in epoch seconds.\n\nDo note epoch is expressed in UTC and therefore local timezone should be ignored.\n\n","_postman_id":"b4c8e284-b267-4232-75e0-caa3ee2327b0"},{"name":"Error Codes","item":[],"id":"bac14058-19d3-4c39-b3c5-751d7856f8bf","description":"This section provides the list of error codes and corresponding message which may appear while working with the VitaCloud API.\n\n| Status Code   | Error Code    | Error Message |\n| ------------- |:-------------:|:-------------:|\n| 400\t\t\t| E_BAD_PARAMETERS | The request cannot be fulfilled due to bad parameters. |\n| 400\t\t\t| E_BAD_REQUEST\t\t| The request cannot be fulfilled due to bad syntax.\t|\n| 400\t\t\t| E_MISSING_PARAMETERS\t| The request cannot be fulfilled due to missing parameters |\n| 401\t\t\t| E_TOKEN_AUTHENTICATION_FAILED\t\t| The given authorization Token is Not Correct\t|\n| 401\t\t\t| E_INVALID_HEADER\t\t| Invalid Header\t|\n| 401\t\t\t| E_TOKEN_EXPIRED\t\t| The given authorization Token has Expired |\n| 401\t\t\t| E_UNAUTHORIZED\t\t| Missing or invalid authentication token |\n| 401\t\t\t| E_UNAUTHORIZED_SCOPE\t| Unauthorized Scope\n| 403\t\t\t| E_FORBIDDEN | User not authorized to perform the operation\n| 404\t\t\t| E_NOT_FOUND\t\t| The requested resource could not be found but may be available again in the future\n| 500\t\t\t| E_INTERNAL_SERVER_ERROR\t\t| Something bad happened on the server","event":[{"listen":"prerequest","script":{"id":"348108a7-f547-4e3c-a193-f750e96d578c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e98cde3b-72bd-4052-a4da-43b3e29c5d02","type":"text/javascript","exec":[""]}}],"_postman_id":"bac14058-19d3-4c39-b3c5-751d7856f8bf"},{"name":"Android SDK","item":[],"id":"b390aa8b-c8ca-4747-a2b1-ad26c6a11b68","description":"Add metadata to your Manifest file\n\n```xml\n<meta-data android:name=\"vita_app_host\" android:value=\"vita-app-example\" />\n<meta-data android:name=\"vita_app_scheme\" android:value=\"com.example.android\" />\n<meta-data android:name=\"vita_environment\" android:value=\"Sandbox|Production\" />\n<meta-data android:name=\"vita_orgid\" android:value=\"ORG ID\" />\n<meta-data android:name=\"vita_google_api_client_id\" android:value=\"CLIENT ID\" />\n```\n\nRegister VitaConnect Activity (Activity present in SDK) with appropriate intent filters in your Manifest file\n\n```xml\n<activity\n    android:name=\"io.vitacloud.vitaconnect.VitaConnectActivity\"\n    android:launchMode=\"singleTop\"\n    android:noHistory=\"true\"\n    android:theme=\"@style/VitaConnectTheme\">\n    <intent-filter>\n        <action android:name=\"android.intent.action.VIEW\"/>\n        <category android:name=\"android.intent.category.DEFAULT\"/>\n        <category android:name=\"android.intent.category.BROWSABLE\"/>\n        <data android:scheme=\"vita-app-example\"\n            android:host=\"com.example.android\"\n            android:pathPrefix=\"/\"/>\n    </intent-filter>\n    <!-- Accept adb data flag -->\n    <intent-filter>\n        <action android:name=\"android.intent.action.VIEW\"/>\n        <category android:name=\"android.intent.category.DEFAULT\"/>\n        <category android:name=\"android.intent.category.BROWSABLE\" />\n        <data android:scheme=\"vita-app-example\"\n            android:host=\"com.example.android\"/>\n    </intent-filter>\n</activity>\n```\n\n\nTo connect to a source use\n\n```xml\nVitaConnect.INSTANCE.connect(getContext(), orguserId, source);\n```\n\nObtain the 'connectToken' by subscribing to events on \n\n```xml\nVitaConnect.INSTANCE.getVitaConnectEvents()\n```\n\nOnce you obtain the connectToken, pass it on to your secure server and authorize the connection from your server with VitaCloud using the 'authorizeConnection' endpoint. Please refer to VitaConnect API to understand more about 'orguserId', 'source', 'connectToken' and 'authorizeConnection' endpoint.","event":[{"listen":"prerequest","script":{"id":"bedee207-f1aa-469d-823e-413a55e67d6c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e25c8a98-1384-4700-9dbb-71d20c0a7dc6","type":"text/javascript","exec":[""]}}],"_postman_id":"b390aa8b-c8ca-4747-a2b1-ad26c6a11b68"}]}