From f9469ef2569d30a848be6e16d8188748cd2a760a Mon Sep 17 00:00:00 2001 From: Mark Holmquist Date: Fri, 17 Aug 2012 11:46:34 -0700 Subject: Add in padUsers HTTP API call I needed the list of users this time, so I got it. There are docs and everything. --- doc/api/http_api.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/api/http_api.md b/doc/api/http_api.md index d51f42c4..335efb3c 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -206,6 +206,10 @@ Group pads are normal pads, but with the name schema GROUPID$PADNAME. A security * **padUsersCount(padID)** returns the number of user that are currently editing this pad

*Example returns:* * `{code: 0, message:"ok", data: {padUsersCount: 5}}` +* **padUsers(padID)** returns the list of users that are currently editing this pad

*Example returns:* + * `{code: 0, message:"ok", data: {padUsers: [{colorId:"#c1a9d9","name":"username1","timestamp":1345228793126},{"colorId":"#d9a9cd","name":"Hmmm","timestamp":1345228796042}]}}` + * `{code: 0, message:"ok", data: {padUsers: []}}` + * **deletePad(padID)** deletes a pad

*Example returns:* * `{code: 0, message:"ok", data: null}` * `{code: 1, message:"padID does not exist", data: null}` -- cgit v1.2.3