Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from jhollinger/master

Add new API endpoints from the 1.1.1 release
  • Loading branch information...
commit 6ccc8b3519c03023056774b8e268a8653445c530 2 parents a096d15 + 61c0b49
devjones authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/py_etherpad/__init__.py
24 src/py_etherpad/__init__.py
View
@@ -125,6 +125,12 @@ def createAuthorIfNotExistsFor(self, authorMapper, name=''):
params['name'] = name
return self.call("createAuthorIfNotExistsFor", params)
+ def listPadsOfAuthor(self, authorID):
+ """returns the ids of all pads this author has edited"""
+ return self.call("listPadsOfAuthor", {
+ "authorID": authorID
+ })
+
# SESSIONS
# Sessions can be created between a group and a author. This allows
# an author to access more than one group. The sessionID will be set as
@@ -214,6 +220,18 @@ def getRevisionsCount(self, padID):
"padID": padID
})
+ def padUsersCount(self, padID):
+ """returns the number of users currently editing this pad"""
+ return self.call("padUsersCount", {
+ "padID": padID
+ })
+
+ def getLastEdited(self, padID):
+ """returns the time the pad was last edited as a Unix timestamp"""
+ return self.call("getLastEdited", {
+ "padID": padID
+ })
+
def deletePad(self, padID):
"""deletes a pad"""
return self.call("deletePad", {
@@ -226,6 +244,12 @@ def getReadOnlyID(self, padID):
"padID": padID
})
+ def listAuthorsOfPad(self, padID):
+ """returns the ids of all authors who've edited this pad"""
+ return self.call("listAuthorsOfPad", {
+ "padID": padID
+ })
+
def setPublicStatus(self, padID, publicStatus):
"""sets a boolean for the public status of a pad"""
return self.call("setPublicStatus", {
Please sign in to comment.
Something went wrong with that request. Please try again.