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>Airline </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>Airline Information</h1>

        <div class="table-responsive">
            <table class="table table-striped" id="table">
                <thead>
                    <tr>
						<th>OtherID</th>
						<th>AirlineID</th>
						<th>AirlineID_ICAO</th>
						<th>Name</th>
                    </tr>
                </thead>

                <tbody id="tbody">
                </tbody>
            </table>
        </div>
        <pre class="pre-scrollable">
		</pre>
    </div>
	<script type="text/javascript">
	
	    var host = 'api.lufthansa.com';
		var url = 'https://'+host+'/v1/references/airlines/';

		var airline_code = ''; //Leave Blank for all airlines
		
		var bearer_token = "hpq47zn2b8mmn4p7hb3yuzqj";

		url += airline_code;
		
		(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 airlineSummary = data.getElementsByTagName('Airline');

				for (var i = 0; i < airlineSummary.length; i++) {
		
					$("table").find('tbody').append($('<tr id=' + i + '>'));
					
					var row = document.getElementById(i);
					
					var x = row.insertCell(-1);
					try{
						x.innerHTML = airlineSummary[i].getElementsByTagName('OtherID')[0].childNodes[0].nodeValue;
					} catch (e) {
						x.innerHTML = '';
					}
		
					var element = airlineSummary[i].getElementsByTagName('AirlineID');
					var x = row.insertCell(-1);
					x.innerHTML = element[0].childNodes[0].nodeValue;
		
		
					var x = row.insertCell(-1);
					try {
						x.innerHTML = airlineSummary[i].getElementsByTagName('AirlineID_ICAO')[0].childNodes[0].nodeValue;
					} catch (e) {
						x.innerHTML = '';
					}
		
					var x = row.insertCell(-1);
					try {
						x.innerHTML = airlineSummary[i].getElementsByTagName('Name')[0].childNodes[0].nodeValue;
					} catch (e) {
						x.innerHTML = '';
					}
		
				}
			})
		})()
    </script>
</body>
</html>
Offers Operations Reference Data oAuth