mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-07 09:40:11 +08:00
http
This commit is contained in:
parent
d3b002a65e
commit
f5f11f9472
@ -22,7 +22,7 @@ Request:<br>
|
|||||||
| qq | String |false|1040400290|bot QQ number you want to access|
|
| qq | String |false|1040400290|bot QQ number you want to access|
|
||||||
|
|
||||||
|
|
||||||
Response:<br>
|
Response if success:<br>
|
||||||
|
|
||||||
| name | type | example|note|
|
| name | type | example|note|
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
@ -30,6 +30,22 @@ Response:<br>
|
|||||||
| session |String |UANSHDKSLAOISN|your session key|
|
| session |String |UANSHDKSLAOISN|your session key|
|
||||||
|
|
||||||
|
|
||||||
|
Response if failed:<br>
|
||||||
|
|
||||||
|
| name | type | example|note|
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| success |Boolean |false|if this session is authorized|
|
||||||
|
| session |String |null|your session key|
|
||||||
|
| error |int |0|error code|
|
||||||
|
|
||||||
|
Error:<br>
|
||||||
|
|
||||||
|
| code | reason|
|
||||||
|
| --- | --- |
|
||||||
|
| 0 | wrong MIRAI API HTTP key |
|
||||||
|
| 1 | unknown bot number |
|
||||||
|
|
||||||
|
|
||||||
without session key, you are not able to access any method below.</br>
|
without session key, you are not able to access any method below.</br>
|
||||||
session key should be attached to your cookies like this:
|
session key should be attached to your cookies like this:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user