Skip to content

Conversation

@keytooker
Copy link

This console project makes simple AirlineInfo request and prints its result. The project is writed in C++, using Qt framework.

QJsonValue phone = item.value(QString("phone"));
QJsonValue url = item.value(QString("url"));
QJsonValue wiki_url = item.value(QString("wiki_url"));
QJsonValue airbourne = item.value(QString("airbourne"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing an integer from the result as a string results in an empty variable.
Instead try:
item.value("airbourne").toVariant().toString()

Do you also want to include the final response value of flights_last_24_hours?


private:
QString fxmlUrl = "http://flightxml.flightaware.com/json/FlightXML3";
const QString Username = "slydog1";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove personal credentials.
This API key has now been revoked. Please return to the FlightXML Key Generation to get a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants