API for Developers

You have to know the php well to skip errors.

For Website

Add this PHP script to your page to process as you want:


  <?php
    //This reads the stream content and convert it from json to array php following our api structure (Cf. "References").
    $jsonString = file_get_contents("https://ram-vlines.com/vam/api/flights.php?app=json");

    //Show the api version 
    echo json_decode($jsonString, true)['api']['version'];
  ?>

              

As information, the url used is taken from the introduction page:

https://ram-vlines.com/vam/api/flights.php?app=json
In addition, you need to preserve ?app=json to get json data. For adding a specific content, add ?app=json&content=live. Here is a short video to understand URL Parameters:


Next