8000 Adding Qt REST example. by keytooker · Pull Request #6 · flightaware/flightxml3_examples · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adding Qt REST example. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master 8000
Choose a base branch
from

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
0