PageSourceSearch

https://api.emailkampane.cz/www/docs/

html emailkampane.cz collected 2026-09-25 21:47:49 UTC 3,025 bytes, 114 lines download raw bytes

1<!-- HTML for static distribution bundle build -->
2<!DOCTYPE html>
3<html lang="en">
4<head>
5	<meta charset="UTF-8">
6	<title>Emailkampane.cz API docs</title>
7<!--	<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/swagger-ui.css" >-->
8	<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/swagger-ui.css" >
9	<link rel="stylesheet" type="text/css" href="custom.css" >
10	<link rel="icon" type="image/png" href="favicon.ico" sizes="32x32" />
11	<style>
12		html
13		{
14			box-sizing: border-box;
15			overflow: -moz-scrollbars-vertical;
16			overflow-y: scroll;
17		}
18		*,
19		*:before,
20		*:after
21		{
22			box-sizing: inherit;
23		}
24
25		body
26		{
27			margin:0;
28			background: #fafafa;
29		}
30	</style>
31</head>
32
33<body>
34<div class="swagger-ui">
35	<div class="topbar">
36		<div class="wrapper">
37			<div class="topbar-wrapper">
38				<a href="https://www.emailkampane.cz/cs/" class="link" target="_blank">
39					<img height="47" width="100" src="logo_EK_white_CS.png" alt="Emailkampane.cz">
40				</a>
41			</div>
42		</div>
43	</div>
44</div>
45<div id="swagger-ui"></div>
46<!--
46<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"></script>
46-->
47<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"></script>
vendor: 2 bytes, line 47
47
48<script>
49	function getSwaggerUri() {
50		const queryString = window.location.search;
51		const urlParams = new URLSearchParams(queryString);
52		const version = urlParams.get('v')
53
54		let swaggerUri = "/docs/swagger.json";
55		if (version) {
56			swaggerUri = "/docs/swagger_" + version + ".json"
57		}
58
59		return swaggerUri;
60	}
61
62	const GET_SESSION_OPERATION = "/get_session"
63	const BEARER = "Bearer "
64
65	// security headers
66	let apiToken = null;
67
68	/**
69	 * Headers are mandatory for all requests except /get_session
70	 * @param req
71	 * @returns {boolean}
72	 */
73	function areSecurityHeadersMandatory(req) {
74		return !req.url.endsWith(GET_SESSION_OPERATION);
75	}
76
77	window.onload = function() {
78		// Begin Swagger UI call region
79		const ui = SwaggerUIBundle({
80			url: window.location.protocol + "//" + window.location.hostname + getSwaggerUri(),
81			dom_id: '#swagger-ui',
82			deepLinking: true,
83			presets: [
84				SwaggerUIBundle.presets.apis,
85			],
86			requestInterceptor: (req) => {
87				if (req.loadSpec) {
88					// Loading page -> do nothing
89				} else {
90					// Sending request
91					if (areSecurityHeadersMandatory(req)) {
92						// Set security headers or show alert
93						if(apiToken != null) {
94							req.headers.authorization = BEARER + apiToken;
95						} else {
96							alert("You need to call operation " + GET_SESSION_OPERATION + " first to authenticate.");
97						}
98					}
99				}
100				return req;
101			},
102			responseInterceptor: (res) => {
103				if(res.url.endsWith(GET_SESSION_OPERATION) && res.status === 200) {
104					// save security headers
105					apiToken = res.body.jwt;
106				}
107			}
108		})
109		// End Swagger UI call region
110		window.ui = ui
111	}
112</script>
112
113</body>
114</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.