diff --git a/mirai-api-http/README.md b/mirai-api-http/README.md index d95986eee..8c671fc28 100644 --- a/mirai-api-http/README.md +++ b/mirai-api-http/README.md @@ -22,7 +22,7 @@ Request:
| qq | String |false|1040400290|bot QQ number you want to access| -Response:
+Response if success:
| name | type | example|note| | --- | --- | --- | --- | @@ -30,6 +30,22 @@ Response:
| session |String |UANSHDKSLAOISN|your session key| +Response if failed:
+ +| name | type | example|note| +| --- | --- | --- | --- | +| success |Boolean |false|if this session is authorized| +| session |String |null|your session key| +| error |int |0|error code| + +Error:
+ +| code | reason| +| --- | --- | +| 0 | wrong MIRAI API HTTP key | +| 1 | unknown bot number | + + without session key, you are not able to access any method below.
session key should be attached to your cookies like this: