Create your virtual airline now on FlyZold and benefit from all the advantages of our modern virtual airline management system !

Retrieve your aircraft from FlyZold Copilot

The "Virtual airline API data" extension is an integral part of FlyZold Copilot and lets you publicly expose all your virtual airline data on our REST API allowing you to retrieve and display it directly on your own websites following the procedure described in this documentation article.

Prerequisites

Before you can retrieve your aircraft from our REST API, you must have activated the "Virtual airline API data" extension within FlyZold Copilot for your virtual airline, have the necessary knowledge of computer programming and more particularly in JavaScript, use a code editor purchased at your own expense, and have a website published on the Internet at your own expense.

Creating an HTTP client

Before you can retrieve your airports from our REST API, you need an HTTP client capable of making requests to our REST API. Here's an example using JavaScript :

/**
* @param httpVerb {string}
* @param baseUrl {string}
* @param license {string}
* @param suffix {string}
* @returns {Promise<{}>}
*/
const httpClient = (httpVerb, baseUrl, license, suffix) => {
return new Promise((resolve, reject) => {
fetch(`${baseUrl}/${license}/${suffix}`, {
method: httpVerb,
headers: {
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(response => resolve(response))
.catch(error => reject(error));
});
};

Use the HTTP client to retrieve aircraft

Once you have a working HTTP client, following the example above, all you need to do is make an HTTP GET request on the "/aircraft" endpoint to retrieve your data. Here's an example using JavaScript :

const API_BASE_URL = "https://api.flyzold.com/0a28858b-6011-4728-b177-71201370296ef02ee1b5-2070-47b4-aee6-a478afc1b41dd772a8ce-288e-4097-a589-62bc042ce5000f2a8b0a-e40e-48f4-b710-f129c7131aa821079f50-4b7f-4a4a-bdb9-9a09c4ec40a08a398859-4500-44c0-856d-e25fb2df4c7fc8cac0c5-e6b2-495f-9650-6433c319165d5ecd8338-e53f-48f3-b807-5b21ddc2beb91b96ac11-be94-4140-a0d4-59a5cc6efcaa551af1dd-29a7-456e-ae17-47cc111bf48b";
const VIRTUAL_AIRLINE_LICENSE = "Your virtual airline license";

document.addEventListener("DOMContentLoaded", async () => {
const aircraft = await httpClient("GET", API_BASE_URL, VIRTUAL_AIRLINE_LICENSE, "aircraft");

if (aircraft) {
// Do some stuff with aircraft...
}
});

Widget

We also offer a turnkey widget so that you can integrate it directly into your websites without any effort. Simply include the content of the following URL in your website (with an iframe for example) :

https://flyzold.com/widgets/aircraft?license=YOUR_VIRTUAL_AIRLINE_LICENSE

Cet article de documentation est fourni à titre d'exemple et ne confère aucun droit de propriété. La mise à disposition publique de cet article de documentation ne peut et ne doit en aucun cas être considérée comme une cession de droits de propriété intellectuelle à quiconque au sens du Code Français de la propriété intellectuelle.

Toute personne utilisant cet article de documentation comprend et accepte expressément que toute utilisation de cet article de documentation se fait à ses risques et périls et qu'il est fourni "en l'état" et "tel que disponible" par Flavien Aymonnier EI.

Flavien Aymonnier EI ne donne aucune garantie expresse et rejette toute garantie implicite concernant cet article de documentation, y compris les garanties implicites de qualité marchande, d'adéquation à un usage particulier et d'absence de contrefaçon, ainsi que toute garantie résultant d'une transaction ou d'un usage commercial.

Toute personne utilisant cet article de documentation comprend et reconnaît en outre que FlyZold, FlyZold Copilot et FlyZold API ne sont pas conçus, prévus ou garantis pour une utilisation dans des environnements dangereux nécessitant des contrôles à sécurité intégrée, y compris, mais sans s'y limiter, l'exploitation d'installations nucléaires, de systèmes de navigation ou de communication d'aéronefs, de contrôle du trafic aérien et de systèmes de survie ou d'armement.

This documentation article is provided as an example and does not confer any ownership rights. Making this documentation article available publicly cannot and must not under any circumstances be considered as the transfer of any intellectual property rights to anyone within the meaning of the French Intellectual Property Code.

Anyone using this documentation article expressly understand and agree that any use of this documentation article is at its sole risk and that it is provided on an "as is" and "as available" basis by Flavien Aymonnier EI.

Flavien Aymonnier EI makes no express warranties and disclaims all implied warranties with respect to this documentation article, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement, as well as any warranties arising from a course of dealing or usage of trade.

Anyone using this documentation article further understand and acknowledge that FlyZold, FlyZold Copilot and FlyZold API are not designed, intended or warranted for use in hazardous environments requiring fail-safe controls, including, but not limited to, the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control and life support or weapons systems.