{
	"info": {
		"_postman_id": "b6d1e15c-6f49-4682-bb61-e4aa9f9f3ad3",
		"name": "Rails Builder",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "IAS V2 login",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"var jsonData = JSON.parse(responseBody);\r",
							"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token); "
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					},
					{
						"key": "tenantId",
						"value": "nagra"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"device\": {\r\n    \"CPU\": {\r\n      \"cores\": \"4\",\r\n      \"frequency\": \"2.693000078201294\"\r\n    },\r\n    \"GPU\": {\r\n      \"cores\": \"0\",\r\n      \"frequency\": \"0\"\r\n    },\r\n    \"OS\": {\r\n      \"type\": \"Windows\",\r\n      \"version\": \"Windows 7 Enterprise\"\r\n    },\r\n    \"hardware\": {\r\n      \"manufacturer\": \"Dell Inc.\",\r\n      \"model\": \"Latitude E7440\",\r\n      \"type\": \"Desktop\"\r\n    },\r\n    \"screen\": {\r\n      \"density\": \"0\",\r\n      \"height\": \"1200\",\r\n      \"width\": \"1920\"\r\n    }\r\n  },\r\n  \"securePlayer\": {\r\n    \"DRMs\": [\r\n      \"SSP\"\r\n    ],\r\n    \"codecs\": [\r\n      \"H264\"\r\n    ],\r\n    \"streamings\": [\r\n      \"DASH\"\r\n    ]\r\n  }\r\n}"
				},
				"url": {
					"raw": "https://api.sitga.otv-staging.com/ias/v2/token?grant_type=password&username=SIT20&password=SIT20",
					"protocol": "https",
					"host": [
						"api",
						"sitga",
						"otv-staging",
						"com"
					],
					"path": [
						"ias",
						"v2",
						"token"
					],
					"query": [
						{
							"key": "grant_type",
							"value": "password"
						},
						{
							"key": "username",
							"value": "SIT20"
						},
						{
							"key": "password",
							"value": "SIT20"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get template Details",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}",
						"type": "text"
					},
					{
						"key": "Nagra-Device-Type",
						"value": "Android",
						"type": "text"
					},
					{
						"key": "Cookie",
						"value": "__cfduid=d6c44edf77b3b410d349ef905bce322ec1601899300",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Authorization-Decoded",
						"value": "{\"ver\": \"1.0\",\"tenantId\": \"nagra\",\"geoBlockExempt\": true,\"accountId\": \"5f8034f08ac12b38ce8bf6ef\",\"billingCountryCode\": \"\",  \"accountProfileId\": \"DEFAULT\",\"sessionControl\": {\"maxSessions\": 1000000000,\"sessionControlEnabled\": false  },  \"exp\":2602238280,  \"deviceId\": \"5f80352cbc568276a9d96474\",  \"fixed_exp\": 2604830160,  \"onNetwork\": true,  \"userId\": \"ELE\",  \"typ\": \"DevAuthN\"}",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Accept-Language",
						"value": "en_GB",
						"type": "text"
					},
					{
						"key": "Token",
						"value": "token",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Nagra-Target",
						"value": "mobile",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api.sitga.otv-staging.com/contentdelivery/v1/templateviews/1ff6afb3-a9fb-4e24-b220-4c52d87eac95",
					"protocol": "https",
					"host": [
						"api",
						"sitga",
						"otv-staging",
						"com"
					],
					"path": [
						"contentdelivery",
						"v1",
						"templateviews",
						"1ff6afb3-a9fb-4e24-b220-4c52d87eac95"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Rails Details (Pageintation) API",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer {{access_token}}",
						"type": "text"
					},
					{
						"key": "Nagra-Device-Type",
						"value": "Android",
						"type": "text"
					},
					{
						"key": "Cookie",
						"value": "__cfduid=d6c44edf77b3b410d349ef905bce322ec1601899300",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Authorization-Decoded",
						"value": "{\"ver\": \"1.0\",\"tenantId\": \"nagra\",\"geoBlockExempt\": true,\"accountId\": \"5f8034f08ac12b38ce8bf6ef\",\"billingCountryCode\": \"\",  \"accountProfileId\": \"DEFAULT\",\"sessionControl\": {\"maxSessions\": 1000000000,\"sessionControlEnabled\": false  },  \"exp\":2602238280,  \"deviceId\": \"5f80352cbc568276a9d96474\",  \"fixed_exp\": 2604830160,  \"onNetwork\": true,  \"userId\": \"ELE\",  \"typ\": \"DevAuthN\"}",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Accept-Language",
						"value": "en_GB",
						"type": "text"
					},
					{
						"key": "Token",
						"value": "{{access_token}}",
						"type": "text",
						"disabled": true
					},
					{
						"key": "Nagra-Target",
						"value": "tv",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://api.sitga.otv-staging.com/contentdelivery/v1/templateviews/1ff6afb3-a9fb-4e24-b220-4c52d87eac95/rails/b60fc401-f2b6-401b-8de4-e9e823e0afb3?page=0&limit=10",
					"protocol": "https",
					"host": [
						"api",
						"sitga",
						"otv-staging",
						"com"
					],
					"path": [
						"contentdelivery",
						"v1",
						"templateviews",
						"1ff6afb3-a9fb-4e24-b220-4c52d87eac95",
						"rails",
						"b60fc401-f2b6-401b-8de4-e9e823e0afb3"
					],
					"query": [
						{
							"key": "page",
							"value": "0"
						},
						{
							"key": "limit",
							"value": "10"
						}
					]
				}
			},
			"response": []
		}
	]
}