mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
http
This commit is contained in:
parent
f5f11f9472
commit
25af15e0ed
@ -5,7 +5,7 @@ Mirai-API-http provides adapter for ALL langugae to access mirai via HTTP protoc
|
||||
</b>
|
||||
|
||||
|
||||
#### Start Session-Authorize
|
||||
### Start Session-Authorize
|
||||
|
||||
```php
|
||||
Path: /auth
|
||||
@ -14,7 +14,7 @@ Method: POST
|
||||
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.
|
||||
|
||||
Request:<br>
|
||||
####Request:<br>
|
||||
|
||||
| name | type | optional|example|note|
|
||||
| --- | --- | --- | --- | --- |
|
||||
@ -22,7 +22,7 @@ Request:<br>
|
||||
| qq | String |false|1040400290|bot QQ number you want to access|
|
||||
|
||||
|
||||
Response if success:<br>
|
||||
####Response if success:<br>
|
||||
|
||||
| name | type | example|note|
|
||||
| --- | --- | --- | --- |
|
||||
@ -30,7 +30,7 @@ Response if success:<br>
|
||||
| session |String |UANSHDKSLAOISN|your session key|
|
||||
|
||||
|
||||
Response if failed:<br>
|
||||
####Response if failed:<br>
|
||||
|
||||
| name | type | example|note|
|
||||
| --- | --- | --- | --- |
|
||||
@ -38,7 +38,7 @@ Response if failed:<br>
|
||||
| session |String |null|your session key|
|
||||
| error |int |0|error code|
|
||||
|
||||
Error:<br>
|
||||
####Error:<br>
|
||||
|
||||
| code | reason|
|
||||
| --- | --- |
|
||||
@ -47,7 +47,7 @@ Error:<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 <b>cookies</b> like this:
|
||||
|
||||
| name | value |
|
||||
| --- | --- |
|
||||
|
Loading…
Reference in New Issue
Block a user