Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// get airplane details from external API
function GETPLANE(icao) {
try {
var c = new java.net.URL('http://xxxyyyzzz.org/' + icao).openConnection();
c.requestMethod='GET';
var reader = new java.io.BufferedReader(new java.io.InputStreamReader(c.inputStream));
return reader.readLine();
} catch(err) {
return "Unknown: " + err;
}
}
GETPLANE($p0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.