code

<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"
	type="text/javascript"></script>
<title>Lounges</title>
<link rel="stylesheet"
	href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"
	type="text/css">
</head>

<body>
	<div class="container">
		<br>

		<h1>Lounges Information</h1>

		<h2 id="FlightHeader"></h2>

		<div class="table-responsive">
			<table class="table table-striped" id="table">
				<thead>
					<tr>
						<th>Name</th>
						<th>Airport</th>
						<th>City Code</th>
						<th>Location</th>
						<th>Open hours</th>
						<th>Features</th>
						<th>Magazine and News</th>
					</tr>
				</thead>

				<tbody id="tbody">
				</tbody>
			</table>
		</div>
		<pre class="pre-scrollable">
		</pre>
	</div>
	<script type="text/javascript">
		var locationStr = "ZRH"; //IATA airport or city code(e.g. ZRH)
		var cabinClass = "F"; //Limit to this cabin class ('F', 'C', 'E', 'M')
		var tierCode = null; //Frequent flyer level ('HON', 'SEN', 'SGC', 'FTL')
		var lang = "de"; //Language code	

		var host = 'api.lufthansa.com';
		var url = 'https://' + host + '/v1/offers/lounges/';

		var bearer_token = "hpq47zn2b8mmn4p7hb3yuzqj";

		if (cabinClass != null) {
			url += locationStr + '?cabinClass=' + cabinClass + '&lang=' + lang;
		}
		
		if (tierCode != null) {
			url += locationStr + '?tierCode=' + tierCode + '&lang=' + lang;
		}

		(function doGet() {
			$
					.ajax({
						type : 'GET',
						url : url,
						dataType : 'xml',
						headers : {
							accept : "application/xml",
							authorization : "Bearer " + bearer_token
						}
					})
					.done(
							function(data) {

								$("pre").text(data.documentElement.outerHTML);

								var elements = data
										.getElementsByTagName('Lounge');

								$("h2")
										.text(
												"Lounges information in "
														+ locationStr);

								for (var i = 0; i < elements.length; i++) {

									var name = elements[i]
											.getElementsByTagName("Name");

									var airportcode = elements[i]
											.getElementsByTagName("AirportCode");

									var citycode = elements[i]
											.getElementsByTagName("CityCode");

									var locationElement = elements[i]
											.getElementsByTagName("Location");

									var openhours = elements[i]
											.getElementsByTagName("OpeningHours");

									var features = elements[i]
											.getElementsByTagName("Features");

									var mandn = elements[i]
											.getElementsByTagName("MagazinesAndNews");

									var featuresStr = "";

									if (features != null) {

										for (var j = 0; j < features[0].childNodes.length; j++) {
											if (features[0].childNodes[j].textContent == 'true') {
												featuresStr += features[0].childNodes[j].tagName
														+ '<br/>';
											}
										}
									}

									var mandnStr = "";

									if (mandn != null) {

										for (var j = 0; j < mandn[0].childNodes.length; j++) {
											if (mandn[0].childNodes[j].textContent == 'true') {
												mandnStr += mandn[0].childNodes[j].tagName
														+ '<br/>';
											}
										}
									}

									$("table").find('tbody').append(
											$('<tr id=' + i + '>'));

									var row = document.getElementById(i);

									//Name
									var x = row.insertCell(-1);
									try {
										x.innerHTML = name[0].textContent;
									} catch (e) {
										x.innerHTML = '';
									}

									//AirportCode						
									var x = row.insertCell(-1);
									try {
										x.innerHTML = airportcode[0].textContent;
									} catch (e) {
										x.innerHTML = '';
									}

									//CityCode
									var x = row.insertCell(-1);
									try {
										x.innerHTML = citycode[0].textContent;
									} catch (e) {
										x.innerHTML = '';
									}

									//Location
									var x = row.insertCell(-1);
									try {
										x.innerHTML = locationElement[0].textContent;
									} catch (e) {
										x.innerHTML = '';
									}

									//Opening Hours
									var x = row.insertCell(-1);
									try {
										x.innerHTML = openhours[0].textContent;
									} catch (e) {
										x.innerHTML = '';
									}

									//features
									var x = row.insertCell(-1);
									x.innerHTML = featuresStr;

									//Magazine and News
									var x = row.insertCell(-1);
									x.innerHTML = mandnStr;

								}
							})
		})()
	</script>
</body>
</html>
Offers Operations Reference Data oAuth