mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Update doc/api/http_api.md
Added docs for the checkToken function
This commit is contained in:
parent
4318d210ce
commit
c2cc292324
1 changed files with 9 additions and 0 deletions
|
@ -407,3 +407,12 @@ sends a custom message of type `msg` to the pad
|
|||
*Example returns:*
|
||||
* `{code: 0, message:"ok", data: {}}`
|
||||
* `{code: 1, message:"padID does not exist", data: null}`
|
||||
|
||||
#### checkToken()
|
||||
* API >= 1
|
||||
|
||||
returns ok when api token is valid
|
||||
|
||||
*Example returns:*
|
||||
* `{"code":0,"message":"ok","data":null}`
|
||||
* `{"code":4,"message":"no or wrong API Key","data":null}`
|
||||
|
|
Loading…
Reference in a new issue