{
	"info": {
		"_postman_id": "d54c7d8f-d2c9-4e0b-ac71-6d3b78b497f0",
		"name": "KERNEL Video Contents",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "ES",
			"item": [
				{
					"name": "search (by CONTINGENCY)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=(el OR de OR la OR temporada OR 3)&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "(el OR de OR la OR temporada OR 3)"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by TITLE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=title: (\"La princesa prometida\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "title: (\"La princesa prometida\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by PARTICIPANTS)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=actor: (\"tom cruise\") OR director: (\"tom cruise\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "actor: (\"tom cruise\") OR director: (\"tom cruise\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by GENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=content_category: (\"MOV\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "content_category: (\"MOV\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by SUBGENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=genre: (\"Cine\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "genre: (\"Cine\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by GENRE and SUBGENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=content_category: (\"MOV\") AND genre: (\"Cine\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "content_category: (\"MOV\") AND genre: (\"Cine\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by channel)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"pm.environment.set('live_at_value', new Date().toISOString().split('.')[0] + 'Z');"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_es}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_es}}/contents/search?administrative_number={{administrative_number_es}}&device_type=HB_TEF&catalog_types=LIVE&commercialization_types=SVOD&search_query=channel_name: \"La 1\"&order=personal&show_series=series&max_quality=HighDefinition&live_at={{live_at_value}}",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_es}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_es}}"
								},
								{
									"key": "device_type",
									"value": "HB_TEF"
								},
								{
									"key": "catalog_types",
									"value": "LIVE"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "channel_name: \"La 1\""
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								},
								{
									"key": "live_at",
									"value": "{{live_at_value}}"
								},
								{
									"key": "profile",
									"value": "0",
									"disabled": true
								},
								{
									"key": "current_region",
									"value": "",
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "BR",
			"item": [
				{
					"name": "search (by CONTINGENCY)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=802&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=(el OR de OR la OR temporada OR 3)&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "802"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "(el OR de OR la OR temporada OR 3)"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by TITLE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=802&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=title: (\"Cidade De Deus\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "802"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "title: (\"Cidade De Deus\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by PARTICIPANTS)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=401&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=actor: (\"tom cruise\") OR director: (\"tom cruise\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "401"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "actor: (\"tom cruise\") OR director: (\"tom cruise\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by GENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=802&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=content_category: (\"PROG\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "802"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "content_category: (\"PROG\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by SUBGENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=401&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=genre: (\"Infantil\")&order=personal&show_series=seriesHighDefinition&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "401"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "genre: (\"Infantil\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by GENRE and SUBGENRE)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=401&catalog_types=VOD,LIVE,L7D&commercialization_types=SVOD&search_query=genre: (\"Infantil\") AND content_category: (\"PROG\")&order=personal&show_series=series&max_quality=HighDefinition",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "401"
								},
								{
									"key": "catalog_types",
									"value": "VOD,LIVE,L7D"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "genre: (\"Infantil\") AND content_category: (\"PROG\")"
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "search (by channel)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									"pm.environment.set('live_at_value', new Date().toISOString().split('.')[0] + 'Z');"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token_br}}",
								"type": "text"
							},
							{
								"key": "x-correlator",
								"value": "{{correlator}}",
								"type": "text",
								"disabled": true
							}
						],
						"url": {
							"raw": "https://api.global-int-current.baikalplatform.com/video-contents/v2/users/{{user_id_br}}/contents/search?administrative_number={{administrative_number_br}}&device_type=301&catalog_types=LIVE&commercialization_types=SVOD&search_query=channel_name: \"AXN\"&order=personal&show_series=series&max_quality=HighDefinition&live_at={{live_at_value}}",
							"protocol": "https",
							"host": [
								"api",
								"global-int-current",
								"baikalplatform",
								"com"
							],
							"path": [
								"video-contents",
								"v2",
								"users",
								"{{user_id_br}}",
								"contents",
								"search"
							],
							"query": [
								{
									"key": "administrative_number",
									"value": "{{administrative_number_br}}"
								},
								{
									"key": "device_type",
									"value": "301"
								},
								{
									"key": "catalog_types",
									"value": "LIVE"
								},
								{
									"key": "commercialization_types",
									"value": "SVOD"
								},
								{
									"key": "search_query",
									"value": "channel_name: \"AXN\""
								},
								{
									"key": "order",
									"value": "personal"
								},
								{
									"key": "show_series",
									"value": "series"
								},
								{
									"key": "max_quality",
									"value": "HighDefinition"
								},
								{
									"key": "live_at",
									"value": "{{live_at_value}}"
								},
								{
									"key": "profile",
									"value": "0",
									"disabled": true
								},
								{
									"key": "current_region",
									"value": "",
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		},
		{
			"name": "Get token BR",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"// Based in https://gist.github.com/aroemen/91d4368cf5714f5d32ea5bdb53d221f9",
							"// Documentation about KJUR.jws.JWS.sign https://kjur.github.io/jsrsasign/api/symbols/KJUR.jws.JWS.html#.sign",
							"var header = {",
							"    'typ': 'JWT',",
							"    'alg': 'RS256',",
							"    'kid': pm.environment.get('header_key_id')",
							"};",
							"var date_create_token = Math.floor(Date.now() / 1000);",
							"var jwt_data = {",
							"        'sub': pm.environment.get(\"user_id_br\"),",
							"        'aud': pm.environment.get('auth_url') + '/',",
							"        'iss': pm.environment.get('issuer_url'),",
							"        'scope': pm.environment.get('scope'),",
							"        'purpose': pm.environment.get('purpose'),",
							"        'exp': date_create_token + parseInt(pm.environment.get('expiration_token')),",
							"        'iat': date_create_token,",
							"        'channel_id': pm.environment.get('channel_id_br'),",
							"        'authorization_id': pm.environment.get('authorization_id_br')",
							"}",
							"var privateKey = atob(pm.environment.get('private_key'));",
							"",
							"function generateJwt() {",
							"\teval(pm.environment.get('jsrsasign-js')); // import javascript jsrsasign",
							"\tvar signedToken = KJUR.jws.JWS.sign(header.alg, JSON.stringify(header), JSON.stringify(jwt_data), privateKey);",
							"    ",
							"    pm.environment.set('assertion_token', signedToken);",
							"    console.log(signedToken)",
							"}",
							"",
							"var navigator = {}; // fake a navigator object for the lib",
							"var window = {}; // fake a window object for the lib",
							"",
							"if (pm.environment.has('jsrsasign-js')) {",
							"    generateJwt();",
							"} else {",
							"    pm.sendRequest('https://kjur.github.io/jsrsasign/jsrsasign-all-min.js', function (err, res) {",
							"\t\tif (err) {",
							"\t\t\tconsole.log(err);",
							"\t\t} else {",
							"            console.log(res);",
							"\t\t\tpm.environment.set('jsrsasign-js', res.text());",
							"\t\t\tgenerateJwt();",
							"\t\t}",
							"    });",
							"}",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				},
				{
					"listen": "test",
					"script": {
						"exec": [
							"const responseJson = pm.response.json();",
							"pm.environment.set('access_token_br', responseJson['access_token']);"
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{client_secret_br}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{client_id_br}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"url": {
					"raw": "{{auth_url}}/token?grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion={{assertion_token}}",
					"host": [
						"{{auth_url}}"
					],
					"path": [
						"token"
					],
					"query": [
						{
							"key": "grant_type",
							"value": "urn:ietf:params:oauth:grant-type:jwt-bearer"
						},
						{
							"key": "assertion",
							"value": "{{assertion_token}}"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get token ES",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"// Based in https://gist.github.com/aroemen/91d4368cf5714f5d32ea5bdb53d221f9",
							"// Documentation about KJUR.jws.JWS.sign https://kjur.github.io/jsrsasign/api/symbols/KJUR.jws.JWS.html#.sign",
							"var header = {",
							"    'typ': 'JWT',",
							"    'alg': 'RS256',",
							"    'kid': pm.environment.get('header_key_id')",
							"};",
							"var date_create_token = Math.floor(Date.now() / 1000);",
							"var jwt_data = {",
							"        'sub': pm.environment.get(\"user_id_es\"),",
							"        'aud': pm.environment.get('auth_url') + '/',",
							"        'iss': pm.environment.get('issuer_url'),",
							"        'scope': pm.environment.get('scope'),",
							"        'purpose': pm.environment.get('purpose'),",
							"        'exp': date_create_token + parseInt(pm.environment.get('expiration_token')),",
							"        'iat': date_create_token,",
							"        'channel_id': pm.environment.get('channel_id_es'),",
							"        'authorization_id': pm.environment.get('authorization_id_es')",
							"}",
							"var privateKey = atob(pm.environment.get('private_key'));",
							"",
							"function generateJwt() {",
							"\teval(pm.environment.get('jsrsasign-js')); // import javascript jsrsasign",
							"\tvar signedToken = KJUR.jws.JWS.sign(header.alg, JSON.stringify(header), JSON.stringify(jwt_data), privateKey);",
							"    ",
							"    pm.environment.set('assertion_token', signedToken);",
							"    console.log(signedToken)",
							"}",
							"",
							"var navigator = {}; // fake a navigator object for the lib",
							"var window = {}; // fake a window object for the lib",
							"",
							"if (pm.environment.has('jsrsasign-js')) {",
							"    generateJwt();",
							"} else {",
							"    pm.sendRequest('https://kjur.github.io/jsrsasign/jsrsasign-all-min.js', function (err, res) {",
							"\t\tif (err) {",
							"\t\t\tconsole.log(err);",
							"\t\t} else {",
							"            console.log(res);",
							"\t\t\tpm.environment.set('jsrsasign-js', res.text());",
							"\t\t\tgenerateJwt();",
							"\t\t}",
							"    });",
							"}",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				},
				{
					"listen": "test",
					"script": {
						"exec": [
							"const responseJson = pm.response.json();",
							"pm.environment.set('access_token_es', responseJson['access_token']);"
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "basic",
					"basic": [
						{
							"key": "password",
							"value": "{{client_secret_es}}",
							"type": "string"
						},
						{
							"key": "username",
							"value": "{{client_id_es}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"url": {
					"raw": "{{auth_url}}/token?grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion={{assertion_token}}",
					"host": [
						"{{auth_url}}"
					],
					"path": [
						"token"
					],
					"query": [
						{
							"key": "grant_type",
							"value": "urn:ietf:params:oauth:grant-type:jwt-bearer"
						},
						{
							"key": "assertion",
							"value": "{{assertion_token}}"
						}
					]
				}
			},
			"response": []
		}
	]
}