-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d576d8e
commit 374bac4
Showing
8 changed files
with
414 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package etherpad; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class EPLiteClient { | ||
private static final String DEFAULT_API_VERSION = "1.2.13"; | ||
private static final String DEFAULT_ENCODING = "UTF-8"; | ||
private final EPLiteConnection connection; | ||
|
||
public EPLiteClient(String url, String apiKey) { | ||
this.connection = new EPLiteConnection(url, apiKey, DEFAULT_API_VERSION, DEFAULT_ENCODING); | ||
} | ||
|
||
public Map listAllPads() { | ||
return this.connection.get("listAllPads"); | ||
} | ||
|
||
public Map getText(String padId) { | ||
Map<String,Object> args = new HashMap<>(); | ||
args.put("padID", padId); | ||
return this.connection.get("getText", args); | ||
} | ||
|
||
} |
Oops, something went wrong.