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">
    <title>Get information about countries</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
    <script src="http://code.jquery.com/jquery-1.10.1.min.js" type="text/javascript"></script>

</head>

<body>
    <div class="container">
        <h1>Countries</h1>

		<h3 id="country_code"></h3>
		<h3 id="zone_code"></h3>

        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th>Language-Code</th>
                        <th>Name</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <pre class="pre-scrollable" id="">
        </pre>

    </div>
<script type="text/javascript">
	var client_secret = '95utFWHmkr';
	var client_id = 'uhvurmax3p4y57fubccubuhj';
	var host = 'api.lufthansa.com';
	var url = 'https://'+host+'/v1/oauth/token';
	var country = 'US';

        (function doRequest() {
            $.ajax({
                type: 'POST',
                url: url,
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded',
                },
                dataType: 'json',
                data: "client_secret=" + client_secret + '&grant_type=client_credentials&client_id=' + client_id
            }).done(function(data) {

            var token = data.access_token;

            	$.ajax({
                	type: 'GET',
					url: 'https://'+host+'/v1/references/countries/' + country,
					headers: {
                    	Authorization: 'Bearer ' + token,
						Accept: 'application/xml'
					}
				}).done(function(data) {

					$("pre").text(data.documentElement.outerHTML);
					
					var names = data.getElementsByTagName('Name');
					var country_code = document.getElementById('country_code');
					var zone_code = document.getElementById('zone_code');

					var c_code = data.getElementsByTagName('CountryCode');
					c_code = c_code[0].childNodes[0].nodeValue;

					var z_code = data.getElementsByTagName('ZoneCode');
					z_code = z_code[0].childNodes[0].nodeValue;

					country_code.innerHTML = "The Country Code: " + c_code;
					zone_code.innerHTML ="The Zone Code: " + z_code;

					for (i = 0; i < names.length; i++) {
						var element = names[i].getAttribute('LanguageCode');
						$("table").find('tbody').append($('<tr id=' + i + '>').append($('<td>').text(element)));

						var element = names[i];
						var row = document.getElementById(i);
						var x = row.insertCell(-1);
						x.innerHTML = element.childNodes[0].nodeValue;
					}
            	})
            })
        })()
    </script>
  </body>
</html>
Offers Operations Reference Data oAuth