From ce45f84b416cbd1f1bd19e13ef4227ee23e1ead5 Mon Sep 17 00:00:00 2001 From: liujiahua123123 Date: Sun, 15 Dec 2019 17:11:06 +0800 Subject: [PATCH] http --- mirai-api-http/README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/mirai-api-http/README.md b/mirai-api-http/README.md index cfc22b29c..d95986eee 100644 --- a/mirai-api-http/README.md +++ b/mirai-api-http/README.md @@ -14,11 +14,27 @@ Method: POST this verify your session to one bot and you could have full access to that bot
NOTE that only 1 bot could be control under 1 session, you could have multiple session to control all bots. +Request:
+ | name | type | optional|example|note| | --- | --- | --- | --- | --- | -| key | String |false|U9HSaDXl39ksd918273hU|this could be found after initialize| +| key | String |false|U9HSaDXl39ksd918273hU|MIRAI API HTTP key, this could be found after initialize| | qq | String |false|1040400290|bot QQ number you want to access| +Response:
+ +| name | type | example|note| +| --- | --- | --- | --- | +| success |Boolean |true|if this session is authorized| +| session |String |UANSHDKSLAOISN|your session key| + + + without session key, you are not able to access any method below.
+ session key should be attached to your cookies like this: - \ No newline at end of file + | name | value | + | --- | --- | + | session |your session key here | + + if you were getting HTTP error code 403, you should ask for a new session key. \ No newline at end of file