Update doc/api/http_api.md

Added docs for the checkToken function
This commit is contained in:
Stephan Jauernick 2012-12-06 21:33:22 +01:00
parent f072d940e0
commit f5814b8bf7

View file

@ -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}`