Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Campfire API client library for Java. Heavily inspired by Tinder.
Java
branch: master

README.md

Jinder - like Tinder, but for Java!

A Campfire API client library for Java. Heavily inspired by Tinder.

Installation

Just add the latest jinder-x.y.z.jar file to your build path. Eclipse users will also want to set the "Source attachment" to its corresponding "-sources" jar to aid in development.

Jinder uses the google-http-java-client library, so you'll also need to add those jars as necessary.

Usage

To get started, create a new Campfire instance, request the Room list, and then play around:

Campfire campfire = Campfire.new("subdomain", "username", "password");
Room room = campfire.rooms().get(0);
room.join();
room.speak("Jinder is my new best friend!");
room.speak("Goodbye.");
room.leave();

If you want to listen to streaming messages from a Room, you can do that too:

room.listen(new Listener() {
  @Override
  public void handleNewMessage(Message message) {
    System.out.println(message.body);
  }
});

For a slightly longer example of how Jinder can make your life easier, go read LiveTest.java.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.