forked from nilsfr/java-etherpad-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
An Etherpad Lite client for Java
License
EtherApp/java-etherpad-lite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Java client for Etherpad Lite’s HTTP JSON API. Etherpad Lite is a collaborative editor provided by the Etherpad Foundation. See https://github.com/ether/etherpad-lite for information on how to install and configure your own Etherpad Lite instance, and read http://etherpad.org/doc/v1.2.0/ for an in-depth description of Etherpad Lite’s HTTP API. DOCUMENTATION For now, the best documentation is reading through the methods available in the EPLiteClient class: https://raw.github.com/jhollinger/java-etherpad-lite/master/src/main/java/org/etherpad_lite_client/EPLiteClient.java. The methods are 1:1 with the EPLite API methods. DEPENDENCIES Depends on JSON.simple (http://code.google.com/p/json-simple/) version 1.1.1. DOWNLOADS You may download pre-compiled .jar files from http://jordanhollinger.com/etherpad-lite-java-client NOTES HEAD currently targets Etherpad Lite API v1.2.1. The plan is to keep up with the most recent version of the Etherpad Lite API. (Note that we're talking about API versions here, not release versions). org.etherpad_lite_client uses Maven. I freely admit that I don't know much about the Java ecosystem, so I welcome any feedback/pull resquests that help improve this project and its structure. EXAMPLE EPLiteClient client = new EPLiteClient("http://localhost:9001", "K8OF91QMQYUvrNu3e9rJ7FnnVgaB3m9q"); # Create pad and set text client.createPad("my_pad"); client.setText("my_pad", "foo!!"); # Get pad text String text = client.getText("my_pad").get("text").toString(); # Get list of all pad ids HashMap result = client.listAllPads(); List padIds = (List) result.get("padIDs"); TESTING Testing requires a copy of EtherpadLite running at http://localhost:9001 with an API key of K8OF91QMQYUvrNu3e9rJ7FnnVgaB3m9q Run tests with maven: mvn test
About
An Etherpad Lite client for Java
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%