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 committed by Stephan Jauernick
parent 4318d210ce
commit c2cc292324
1 changed files with 9 additions and 0 deletions

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