|
Project Information
Links
|
A small library which uses the Google GTalk service to interact with popular Aardvark (vark.com) service. The library uses the popular Smack library for Java/XMPP communication. Setup the Vark connection with your gmail address. final Vark vark = new Vark("abc@gmail.com", "hello");Set message listener vark.setListener(new VarkMessageListener() {
public void messageReceived(String message) {
try {
System.out.println("Vark Message: " + message);
if (message.contains("pass")) {
vark.pass();
}
} catch (Exception e) {
// handle exception
}
}
});Connect the service vark.connect(); Fire the Vark standard console commands vark.getNextQuestion(); Disconnect the service vark.disconnect(); The source is available as a NetBeans project in the download section. And soon will be available in the SVN. |