Twitter OAuth
-
I want to do a QML application that can send tweets.
I've done it before for Android using Twitter4J, and, honestly, I hoped to find something that works in the same way for QML.I googled a lot and I find "twitter4qml":http://git.qtquick.me/?p=twitter4qml.git;a=tree;f=src/lib/trends;h=0b61f7558c68f0db02e8825bffabb66db47b665e;hb=c0c24023cae30fe50854da3a19a52cf12ad74196 but I really can't understand how should I use it.
So, can you link me some projects/tutorials/something that use this library for a QML project or give me some suggestions about what should I do?
Thanks...
-
the git repository you've posted also contains an "example":http://git.qtquick.me/?p=twitter4qml.git;a=tree;f=examples folder, in there is also "code":http://git.qtquick.me/?p=twitter4qml.git;a=blob;f=examples/statusesfilter/statusesfilter.cpp how the OAuth stuff is done.
-
Sorry, first time I try to include c++ code to my qml project. What do I have to do? I mean, I've downloaded the src folder but I don't understand what to do now.....
-
in your qml file do this:
@import TwitterAPI 1.1@
then have a look at "this":git.qtquick.me/?p=twitter4qml.git;a=blob;f=examples/statusesfilter/2.x/main.qml and see how they use the API.and for OAuth do the same think like in "this":http://git.qtquick.me/?p=twitter4qml.git;a=blob;f=examples/statusesfilter/statusesfilter.cpp file.
To avoid build problems see the "pro file":http://git.qtquick.me/?p=twitter4qml.git;a=blob;f=examples/statusesfilter/statusesfilter.pro.
Don't just download the src folder, but rather the whole project and build it.
Then build your project.