Commit ce45f84b authored by liujiahua123123's avatar liujiahua123123

http

parent 047d5d60
...@@ -14,11 +14,27 @@ Method: POST ...@@ -14,11 +14,27 @@ Method: POST
this verify your session to one bot and you could have full access to that bot<br> this verify your session to one bot and you could have full access to that bot<br>
NOTE that only 1 bot could be control under 1 session, you could have multiple session to control all bots. NOTE that only 1 bot could be control under 1 session, you could have multiple session to control all bots.
Request:<br>
| name | type | optional|example|note| | 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| | qq | String |false|1040400290|bot QQ number you want to access|
Response:<br>
| 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.</br>
session key should be attached to your cookies like this:
| 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 \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment