{"info":{"_postman_id":"ada127b6-0bf1-4aad-9f8f-fb193527db53","name":"Travel Media Group","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"188323","collectionId":"ada127b6-0bf1-4aad-9f8f-fb193527db53","publishedId":"SW18vEkj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"9CC448"},"publishDate":"2019-11-08T16:59:41.000Z"},"item":[{"name":"TMG OneView","item":[{"name":"Properties","item":[{"name":"Property","id":"bcd7e5fd-5675-4fde-8949-344dd07659af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://www.tmgoneview.com/api/properties/:propertyId","description":"<p>Get basic property description.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}},"urlObject":{"path":["properties",":propertyId"],"host":["https://www.tmgoneview.com/api"],"query":[],"variable":[{"description":{"content":"<p>A Property's ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"propertyId"}]}},"response":[{"id":"8a22afc2-2032-4d11-8320-a4be6db9a8c9","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{ token }}","description":"Your token presented as a bearer token","type":"text"}],"url":{"raw":"https://www.tmgoneview.com/api/properties/:propertyId","protocol":"https","host":["www","tmgoneview","com"],"path":["api","properties",":propertyId"],"variable":[{"key":"propertyId","value":"57934","description":"A Property's ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"socialId\": 1131,\n        \"name\": \"TMG Demo Hotel\",\n        \"address\": {\n            \"id\": 57934,\n            \"createdAt\": [],\n            \"street\": \"851 Trafalgar Court\",\n            \"city\": \"Maitland\",\n            \"postalCode\": \"32751\",\n            \"region\": {\n                \"id\": 10,\n                \"createdAt\": [],\n                \"code\": \"FL\",\n                \"name\": \"Florida\"\n            },\n            \"country\": {\n                \"id\": 1,\n                \"createdAt\": [],\n                \"code\": \"US\",\n                \"name\": \"United States\"\n            },\n            \"lat\": 32.760178,\n            \"lng\": -117.169296\n        },\n        \"tessId\": 104289,\n        \"disengageId\": null,\n        \"id\": 57934,\n        \"createdAt\": []\n    },\n    \"success\": true\n}"}],"_postman_id":"bcd7e5fd-5675-4fde-8949-344dd07659af"},{"name":"Reputation","id":"02325a3f-909a-446f-82fe-734341579f61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"url":"https://www.tmgoneview.com/api/properties/:propertyId/reputation","description":"<p>Get reputation overview data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}},"urlObject":{"path":["properties",":propertyId","reputation"],"host":["https://www.tmgoneview.com/api"],"query":[],"variable":[{"description":{"content":"<p>A Property's ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"propertyId"}]}},"response":[{"id":"acabca4c-0018-43a3-922f-33c73a2b0187","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer {{ token }}","description":"Your token presented as a bearer token","type":"text"}],"url":{"raw":"https://www.tmgoneview.com/api/properties/:propertyId/reputation","protocol":"https","host":["www","tmgoneview","com"],"path":["api","properties",":propertyId","reputation"],"variable":[{"description":"A Property's ID","key":"propertyId","type":"string","value":"57934"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Booking\": [\n            {\n                \"id\": 5634,\n                \"rating\": 8.6,\n                \"cleanliness\": 9,\n                \"comfort\": 8.9,\n                \"location\": 9.5,\n                \"facilities\": 8.5,\n                \"staff\": 8.3,\n                \"valueForMoney\": 7.6,\n                \"freeWifi\": 8.9,\n                \"createdAt\": \"2018-04-21T07:55:41+00:00\",\n                \"updatedAt\": \"2019-11-22T07:24:06+00:00\",\n                \"yrmo\": \"1804\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"Expedia\": [\n            {\n                \"id\": 46243,\n                \"totalReviewCount\": 5457,\n                \"rating\": 4.5656967,\n                \"cleanliness\": 4.6911235,\n                \"serviceAndStaff\": 4.536388,\n                \"hotelCondition\": 4.617035,\n                \"convenienceOfLocation\": 4.86498,\n                \"neighborhoodSatisfaction\": 4.718209,\n                \"roomQuality\": 0,\n                \"recommendedPercent\": 90.4133,\n                \"valueForMoney\": 4.160714,\n                \"halfLifeRating\": 4.433482,\n                \"halfLifeRecommended\": 90.4133,\n                \"createdAt\": \"2018-05-06T04:50:42+00:00\",\n                \"updatedAt\": \"2019-11-28T23:23:56+00:00\",\n                \"yrmo\": \"1805\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"Google\": [\n            {\n                \"id\": 6103,\n                \"name\": \"TMG Demo Hotel\",\n                \"address\": \"851 Trafalgar Court, Maitland, FL\",\n                \"rating\": 4.5,\n                \"createdAt\": \"2018-04-21T19:24:22+00:00\",\n                \"updatedAt\": \"2019-11-22T03:26:47+00:00\",\n                \"yrmo\": \"1804\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"Hotels\": [],\n        \"Orbitz\": [\n            {\n                \"id\": 41614,\n                \"totalReviewCount\": 86,\n                \"rating\": 4.5581393,\n                \"cleanliness\": 4.686747,\n                \"serviceAndStaff\": 4.590362,\n                \"hotelCondition\": 4.6415105,\n                \"convenienceOfLocation\": 4.740741,\n                \"neighborhoodSatisfaction\": 0,\n                \"roomQuality\": 0,\n                \"recommendedPercent\": 91.803276,\n                \"valueForMoney\": 4.3333335,\n                \"halfLifeRating\": 3.8209648,\n                \"halfLifeRecommended\": 90.421455,\n                \"createdAt\": \"2018-05-06T04:53:59+00:00\",\n                \"updatedAt\": \"2019-11-29T23:23:02+00:00\",\n                \"yrmo\": \"1805\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"Priceline\": [\n            {\n                \"id\": 877005,\n                \"rating\": 9.2,\n                \"location\": 9.6,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.2,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-09-15T20:39:12+00:00\",\n                \"updatedAt\": \"2018-09-15T20:39:12+00:00\",\n                \"yrmo\": \"1809\",\n                \"customer_id\": 57934\n            },\n            {\n                \"id\": 851223,\n                \"rating\": 9.2,\n                \"location\": 9.6,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.2,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-08-26T08:30:34+00:00\",\n                \"updatedAt\": \"2018-08-26T08:30:34+00:00\",\n                \"yrmo\": \"1808\",\n                \"customer_id\": 57934\n            },\n            {\n                \"id\": 804222,\n                \"rating\": 9.2,\n                \"location\": 9.6,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.2,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-07-22T16:48:07+00:00\",\n                \"updatedAt\": \"2018-07-22T16:48:07+00:00\",\n                \"yrmo\": \"1807\",\n                \"customer_id\": 57934\n            },\n            {\n                \"id\": 728075,\n                \"rating\": 9.2,\n                \"location\": 9.6,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.2,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-06-04T04:53:01+00:00\",\n                \"updatedAt\": \"2018-06-04T04:53:01+00:00\",\n                \"yrmo\": \"1806\",\n                \"customer_id\": 57934\n            },\n            {\n                \"id\": 668944,\n                \"rating\": 9.2,\n                \"location\": 9.7,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.2,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-05-28T08:53:52+00:00\",\n                \"updatedAt\": \"2018-05-28T08:53:52+00:00\",\n                \"yrmo\": \"1805\",\n                \"customer_id\": 57934\n            },\n            {\n                \"id\": 439135,\n                \"rating\": 9.3,\n                \"location\": 9.7,\n                \"cleanliness\": 9.5,\n                \"quality\": 9.3,\n                \"dining\": null,\n                \"staff\": 9.3,\n                \"createdAt\": \"2018-04-30T09:02:01+00:00\",\n                \"updatedAt\": \"2018-04-30T09:02:01+00:00\",\n                \"yrmo\": \"1804\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"Travelocity\": [\n            {\n                \"id\": 38670,\n                \"totalReviewCount\": 41,\n                \"rating\": 4.5121946,\n                \"cleanliness\": 4.780488,\n                \"serviceAndStaff\": 4.707317,\n                \"hotelCondition\": 4.707317,\n                \"convenienceOfLocation\": 0,\n                \"neighborhoodSatisfaction\": 0,\n                \"roomQuality\": 0,\n                \"recommendedPercent\": 100,\n                \"valueForMoney\": 0,\n                \"halfLifeRating\": 4.4708323,\n                \"halfLifeRecommended\": 90.784225,\n                \"createdAt\": \"2018-05-06T04:57:31+00:00\",\n                \"updatedAt\": \"2019-11-29T23:24:26+00:00\",\n                \"yrmo\": \"1805\",\n                \"customer_id\": 57934\n            }\n        ],\n        \"TripAdvisor\": []\n    },\n    \"success\": true\n}"}],"_postman_id":"02325a3f-909a-446f-82fe-734341579f61"},{"name":"Property Reputation Performance","id":"7c5fdec3-f0be-4768-9341-405837882a17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://www.tmgoneview.com/api/properties/:propertyId/reputation-performance","description":"<p>Get reputation performance metrics for the specified date range. Defaulting to the last 30 days.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}},"urlObject":{"path":["properties",":propertyId","reputation-performance"],"host":["https://www.tmgoneview.com/api"],"query":[{"disabled":true,"description":{"content":"<p>Start Date</p>\n","type":"text/plain"},"key":"start","value":""},{"disabled":true,"description":{"content":"<p>End Date</p>\n","type":"text/plain"},"key":"end","value":""}],"variable":[{"description":{"content":"<p>A Property's ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"propertyId"}]}},"response":[{"id":"82006e13-524a-4aae-bad4-25cf1d2bdd56","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{ token }}","type":"text"}],"url":{"raw":"https://www.tmgoneview.com/api/properties/:propertyId/reputation-performance?start=2022-09-01&end=2022-09-30","host":["https://www.tmgoneview.com/api"],"path":["properties",":propertyId","reputation-performance"],"query":[{"key":"start","value":"2022-09-01","description":"Start Date"},{"key":"end","value":"2022-09-30","description":"End Date"}],"variable":[{"key":"propertyId","value":"57934","description":"A Property's ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"57934\": {\n            \"TripAdvisor\": {\n                \"total_reviews\": 5,\n                \"avg_rating\": \"3.60000000\",\n                \"respondable\": \"5\",\n                \"has_response\": \"3\",\n                \"negative\": \"1\",\n                \"neutral\": \"1\",\n                \"positive\": \"3\"\n            },\n            \"Hotels\": {\n                \"total_reviews\": 4,\n                \"avg_rating\": \"4.5\",\n                \"respondable\": \"1\",\n                \"has_response\": \"1\",\n                \"negative\": \"0\",\n                \"neutral\": \"0\",\n                \"positive\": \"4\"\n            },\n            \"Expedia\": {\n                \"total_reviews\": 10,\n                \"avg_rating\": \"4.4\",\n                \"respondable\": \"10\",\n                \"has_response\": \"10\",\n                \"negative\": \"0\",\n                \"neutral\": \"2\",\n                \"positive\": \"8\"\n            },\n            \"GoogleMyBusiness\": {\n                \"total_reviews\": 8,\n                \"avg_rating\": \"3.25000000\",\n                \"respondable\": \"7\",\n                \"has_response\": \"7\",\n                \"negative\": \"2\",\n                \"neutral\": \"2\",\n                \"positive\": \"4\"\n            }\n        }\n    },\n    \"success\": true\n}"}],"_postman_id":"7c5fdec3-f0be-4768-9341-405837882a17"}],"id":"77240a0e-b276-4b09-9f5c-3e41c6f4ffae","_postman_id":"77240a0e-b276-4b09-9f5c-3e41c6f4ffae","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}}},{"name":"Create Guest Relations Tile","event":[{"listen":"prerequest","script":{"id":"e7d7a300-7f25-45a3-b283-e5841429a0f6","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"52a498eb-3369-42b6-8e25-cd864a810b8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"FOO42\",\n    \"firstName\": \"Foo\",\n    \"lastName\": \"Bar\",\n    \"email\": \"foo.bar@example.com\",\n    \"phone\": \"123-456-7890\",\n    \"confirmation\": \"658973231412\",\n    \"roomNumber\": \"103\",\n    \"checkIn\": \"1/20/2025\",\n    \"loyaltyNumber\": \"123456789\",\n    \"details\": \"This is a test. Please delete me!\"\n    // \"directForm\": \"{{ route-name }}\"\n    // \"source\": \"{{ source-name }}\"\n}"},"url":"https://www.tmgoneview.com/api/guest-relations","description":"<p>Create a new Guest Relations tile.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}},"urlObject":{"path":["guest-relations"],"host":["https://www.tmgoneview.com/api"],"query":[],"variable":[]}},"response":[{"id":"9cd0f6e3-b0b8-45b3-8d50-e7a8c20e5937","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{ token }}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"FOO42\",\n    \"firstName\": \"Foo\",\n    \"lastName\": \"Bar\",\n    \"email\": \"foo.bar@example.com\",\n    \"phone\": \"123-456-7890\",\n    \"confirmation\": \"658973231412\",\n    \"roomNumber\": \"103\",\n    \"checkIn\": \"1/20/2025\",\n    \"loyaltyNumber\": \"123456789\",\n    \"details\": \"I did not enjoy my stay and would like a refund.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.tmgoneview.com/api/guest-relations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"id\": \"392-1940399491-b23d339c\"\n}"},{"id":"1e356361-d3d1-4e1c-877e-6a75bb3a0f6e","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{ token }}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"FOO42\",\n    \"firstName\": \"Foo\",\n    \"lastName\": \"Bar\",\n    \"email\": \"foo.bar@example.com\",\n    \"phone\": \"123-456-7890\",\n    \"confirmation\": \"658973231412\",\n    \"roomNumber\": \"103\",\n    \"checkIn\": \"1/20/2025\",\n    \"loyaltyNumber\": \"123456789\",\n    \"details\": \"I did not enjoy my stay and would like a refund.\",\n    \"directForm\": \"{{ route-name }}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.tmgoneview.com/api/guest-relations"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"error\": \"Invalid property id: FOO42\",\n    \"errorCode\": 1001\n}"}],"_postman_id":"52a498eb-3369-42b6-8e25-cd864a810b8b"},{"name":"Validate Email Address","id":"345b6ee0-7d52-4319-86f7-dc0b22fa648c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"foo@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.tmgoneview.com/api/email/validate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":true,"source":{"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","name":"TMG OneView","type":"folder"}},"urlObject":{"path":["email","validate"],"host":["https://www.tmgoneview.com/api"],"query":[],"variable":[]}},"response":[{"id":"2adee396-6596-4b5e-a42d-e8fd1622c687","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{ token }}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"foo@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.tmgoneview.com/api/email/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"c62805d9-7fca-485c-ae43-ec9294e50882","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{ token }}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"foo@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.tmgoneview.com/api/email/validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"error\": \"Invalid Email\",\n    \"errorCode\": 1002\n}"}],"_postman_id":"345b6ee0-7d52-4319-86f7-dc0b22fa648c"}],"id":"666c7b23-d02f-4b19-ba61-aaa28e27f106","description":"<h1 id=\"authentication\">Authentication</h1>\n<p>You'll need to contact Travel Media Group to obtain an API token. This token should then be placed in an <code>Authorization</code> header.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer {{ token }}\n\n</code></pre><p>Requests without valid authentication will fail.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ token }}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"0bc25c8c-5d82-4b87-84e7-23a637287792","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"53fbc17d-e4fe-4632-9400-bb00d79d820e","type":"text/javascript","requests":{},"exec":[""]}}],"_postman_id":"666c7b23-d02f-4b19-ba61-aaa28e27f106"}],"event":[{"listen":"prerequest","script":{"id":"4b914c3f-9a44-41db-bac4-2e552134eb1b","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"a5551bc4-e59d-41c5-83c2-3b66fc08f859","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"ovApi","value":"https://www.tmgoneview.com/api"},{"key":"ovToken","value":"{{ token }}"}]}