API Use with JSON encoded data

This section requires developers skills. Here is a video for you to understand:

For Website

The snippet code below requires jquery library. You can get Jquery hosted by integrating the following html code:


  <script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
              

Next, you need to add this javascript script to your page to process as you want:


  //the url below is refered to "Introduction" page
  $.ajax({
    url: 'https://ram-vlines.com/vam/api/flights.php?app=json', 
    type: 'get',
    dataType: 'JSON',
    success: function(data){
      //USE "data" to get json decoded as array.

      //For example you can get api details (refers to References page)
      var api_version = data['api']['version'];

      //Output debug:
      console.log(api_version); //Returns in the console: v1.1
    }
  });


              

Next