Commit 25af15e0 authored by liujiahua123123's avatar liujiahua123123

http

parent f5f11f94
......@@ -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 |
| --- | --- |
......
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