{"info":{"_postman_id":"bc35c1d9-6441-4019-81e5-4fd0d740c3b1","name":"TDP","description":"<html><head></head><body><p>This collection contains the basic authentication methods for the TDP and basic data accessor functions. An environment must be enabled with two variables in it, email containing the email address and password you use to access the data platform website.</p>\n<p>For information on setting up Postman Environments please refer to\n<a href=\"https://learning.getpostman.com/docs/postman/environments_and_globals/manage_environments/\">https://learning.getpostman.com/docs/postman/environments_and_globals/manage_environments/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3038376","collectionId":"bc35c1d9-6441-4019-81e5-4fd0d740c3b1","publishedId":"S1ERvH3R","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7030A0"},"publishDate":"2019-04-17T05:48:39.000Z"},"item":[{"name":"authentication","item":[{"name":"LOGIN","event":[{"listen":"test","script":{"id":"e43d474a-a353-4c0d-8e6f-a5942eb3d10f","exec":["var response = JSON.parse(responseBody);","","if(response.type === \"LOGIN_SUCCESS\")","{","    postman.setEnvironmentVariable(\"access_token\", response.idToken);","    postman.setEnvironmentVariable(\"refresh_token\", response.refreshToken);","}","","if(response.type === \"NEW_PASSWORD_REQUIRED\")","{","    postman.setEnvironmentVariable(\"auth_session\", response.session);","}"],"type":"text/javascript"}}],"id":"913a2ddb-73fc-4e16-b786-0efe6562783a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": \"LOGIN\",\n\t\"username\": \"{{email}}\",\n\t\"password\": \"{{password}}\"\n}"},"url":"https://api.telemattica-services.com/v0/auth","urlObject":{"protocol":"https","path":["v0","auth"],"host":["api","telemattica-services","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"913a2ddb-73fc-4e16-b786-0efe6562783a"},{"name":"REFRESH_TOKEN","event":[{"listen":"test","script":{"id":"f3cb1192-b4c4-4f89-b380-7da640e0c550","exec":["var response = JSON.parse(responseBody);","","if(response.type === \"REFRESH_SUCCESS\")","{","    postman.setEnvironmentVariable(\"access_token\", response.idToken);","    postman.setEnvironmentVariable(\"refresh_token\", response.refreshToken);","}",""],"type":"text/javascript"}}],"id":"73df5bd9-cb5a-4143-8cde-4179e4347e13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": \"REFRESH_TOKEN\",\n\t\"refreshToken\": \"{{refresh_token}}\"\n}"},"url":"https://api.telemattica-services.com/v0/auth","urlObject":{"protocol":"https","path":["v0","auth"],"host":["api","telemattica-services","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"73df5bd9-cb5a-4143-8cde-4179e4347e13"},{"name":"NEW_PASSWORD","id":"9b8a3567-c315-4f54-817b-73669866d353","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"type\": \"NEW_PASSWORD\",\n\t\"session\": \"{{auth_session}}\",\n\t\"username\": \"{{email}}\",\n\t\"password\": \"{{password}}\"\n}\n"},"url":"https://api.telemattica-services.com/v0/auth","urlObject":{"protocol":"https","path":["v0","auth"],"host":["api","telemattica-services","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b8a3567-c315-4f54-817b-73669866d353"}],"id":"686ff489-b8c7-427b-abfd-62247adbb44f","_postman_id":"686ff489-b8c7-427b-abfd-62247adbb44f","description":""},{"name":"OHW","item":[{"name":"Last 50 Impact Events","id":"a40953e1-8a97-43a6-9875-8d229e8725d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-access-token","value":"{{access_token}}","type":"text"},{"key":"Page-Size","value":"50","type":"text"}],"url":"https://api.telemattica-services.com/test/raw/ohw/events?gateway.id==\"00000045\"&fields=[\"data.video\", \"data.accelerationTrace.msFromEventEnd\"]","urlObject":{"protocol":"https","path":["test","raw","ohw","events"],"host":["api","telemattica-services","com"],"query":[{"key":"gateway.id","value":"=\"00000045\""},{"key":"fields","value":"[\"data.video\", \"data.accelerationTrace.msFromEventEnd\"]"}],"variable":[]}},"response":[],"_postman_id":"a40953e1-8a97-43a6-9875-8d229e8725d6"},{"name":"Last 50 Tracking Pings","id":"c962f0a5-3975-4457-a69e-4ce723d67417","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-access-token","value":"{{access_token}}","type":"text"},{"key":"Page-Size","value":"50","type":"text"}],"url":"https://api.telemattica-services.com/v0/raw/ohw/trackingpings?sort=<\"data.gnss.timestamp\"","urlObject":{"protocol":"https","path":["v0","raw","ohw","trackingpings"],"host":["api","telemattica-services","com"],"query":[{"key":"sort","value":"<\"data.gnss.timestamp\""}],"variable":[]}},"response":[],"_postman_id":"c962f0a5-3975-4457-a69e-4ce723d67417"},{"name":"video","id":"9873f51e-9dc0-4d19-bb49-3661a5c65a4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"{{access_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.telemattica.com/v0/ohwvideo/5D707B14_00000007.mp4","urlObject":{"protocol":"https","path":["v0","ohwvideo","5D707B14_00000007.mp4"],"host":["api","telemattica","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9873f51e-9dc0-4d19-bb49-3661a5c65a4a"}],"id":"ccc6cf4f-f682-46d0-80d4-81d47f97b163","description":"<p>Contains various requests for interacting with the OHW data sets.</p>\n","_postman_id":"ccc6cf4f-f682-46d0-80d4-81d47f97b163"},{"name":"Device Man","item":[{"name":"Get System Events","id":"ad3c97ef-774b-4511-8d9e-5009124a629f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"ad3c97ef-774b-4511-8d9e-5009124a629f"},{"name":"Get PM1000 Healths","id":"fb54b56c-83b8-4269-a24e-80991f6e18a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.telemattica-services.com/dev/pm1000/healths","urlObject":{"protocol":"https","path":["dev","pm1000","healths"],"host":["api","telemattica-services","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb54b56c-83b8-4269-a24e-80991f6e18a1"}],"id":"db1869f5-3bf6-463f-8636-bbffd79818da","_postman_id":"db1869f5-3bf6-463f-8636-bbffd79818da","description":""}]}