-
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 f972698
Showing
8 changed files
with
458 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,36 @@ | ||
/* | ||
This project is licensed under the Mulan PSL v2. | ||
You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
You may obtain a copy of Mulan PSL v2 at: | ||
http://license.coscl.org.cn/MulanPSL2 | ||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||
See the Mulan PSL v2 for more details. | ||
Created: 2024 | ||
*/ | ||
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.