PDA

View Full Version : How to talk to a API?



srohit24
23rd March 2009, 19:45
How to talk to a API without opening a webpage?

All I need my app to do, talk to the API, say twitter, get the information that I need, say the latest 20 tweets and display the information in the UI that i have created.

can it be done in c++ or should i use php to accomplish it?

What is the difference in the dependencies if i use php rather than c++?

I am trying to built a cliet that can work with a api, like http://www.twhirl.org

thanks

Lykurg
23rd March 2009, 20:32
Please don't open various threads on one topic. And the answer you have already: QNetworkAccessManager.
PHP is a bad decision unless you are working on a web page with a server you control. If you developing an QUI/Qt based application stay with Qt/C++. (If you are using PHP you must ensure that the user have a server running (localhost) with php-support...)

EDIT: With a simple forum search for "twitter" you have could found this post (http://www.qtcentre.org/forum/f-qt-software-16/t-qtwitter-18978.html). Look at the sources and study it!

srohit24
24th March 2009, 05:03
thanks for the info.