From c2cc29232448f1e7c6d388824b506bfd1b9a5f27 Mon Sep 17 00:00:00 2001 From: Stephan Jauernick Date: Thu, 6 Dec 2012 21:33:22 +0100 Subject: [PATCH] Update doc/api/http_api.md Added docs for the checkToken function --- doc/api/http_api.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/http_api.md b/doc/api/http_api.md index 7ace1b0b7..e73109b01 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -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}`