Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
da18aafa
Commit
da18aafa
authored
Dec 18, 2019
by
Him188
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
bf9dcbca
2c0ecbd8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
7 deletions
+66
-7
.github/workflows/main.yml
.github/workflows/main.yml
+1
-1
README.md
README.md
+8
-6
mirai-api-http/README.md
mirai-api-http/README.md
+2
-0
mirai-api-http/README_CH.md
mirai-api-http/README_CH.md
+55
-0
No files found.
.github/workflows/main.yml
View file @
da18aafa
...
@@ -13,5 +13,5 @@ jobs:
...
@@ -13,5 +13,5 @@ jobs:
uses
:
msfjarvis/setup-android@0.2
uses
:
msfjarvis/setup-android@0.2
with
:
with
:
# Gradle tasks to run - If you want to run ./gradlew assemble, specify assemble here.
# Gradle tasks to run - If you want to run ./gradlew assemble, specify assemble here.
gradleTasks
:
build
gradleTasks
:
build
-x mirai-core:jvmTest
README.md
View file @
da18aafa
# Mirai
# Mirai
[

](https://www.codacy.com/manual/Him188/mirai?utm_source=github.com
&
utm_medium=referral
&
utm_content=mamoe/mirai
&
utm_campaign=Badge_Grade)
[

](https://gitter.im/mamoe/mirai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[

](https://bintray.com/him188moe/mirai/mirai-core/)
[

](https://www.codacy.com/manual/Him188/mirai?utm_source=github.com
&
utm_medium=referral
&
utm_content=mamoe/mirai
&
utm_campaign=Badge_Grade)
[

](https://gitter.im/mamoe/mirai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[

](https://github.com/mamoe/mirai/actions)
[

](https://bintray.com/him188moe/mirai/mirai-core/)
**[English](README-eng.md)**
**[English](README-eng.md)**
**TIM PC 协议**
跨平台 QQ 协议支持库.
**TIM PC 协议**
跨平台 QQ 协议支持库.
...
@@ -70,12 +73,11 @@ bot.subscribeAlways<MemberPermissionChangedEvent> {
...
@@ -70,12 +73,11 @@ bot.subscribeAlways<MemberPermissionChangedEvent> {
我们欢迎一切形式的贡献. 若您有兴趣为 Mirai 实现 JS, iOS, Native 平台, 请联系我(
`Him188@mamoe.net`
).
我们欢迎一切形式的贡献. 若您有兴趣为 Mirai 实现 JS, iOS, Native 平台, 请联系我(
`Him188@mamoe.net`
).
若在使用过程中有任何疑问, 可提交 issue 或是邮件联系. 我们希望 Mirai 变得更易用.
若在使用过程中有任何疑问, 可提交 issue 或是邮件联系. 我们希望 Mirai 变得更易用.
## Requirements
##
Build
Requirements
Kotlin 1.3.61
-
Kotlin 1.3.61
-
JDK 8
JVM 平台: Java 6
-
Android SDK 29
Android: SDK 15
### Using Java
### Using Java
Q: 是否能只使用 Java 而不使用 Kotlin 来调用 Mirai?
Q: 是否能只使用 Java 而不使用 Kotlin 来调用 Mirai?
...
...
mirai-api-http/README.md
View file @
da18aafa
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
<b>
<b>
Mirai-API-http provides adapter for ALL langugae to access mirai via HTTP protocol.
<br>
Mirai-API-http provides adapter for ALL langugae to access mirai via HTTP protocol.
<br>
</b>
</b>
**[中文](README_CH.md)**
### Start Session-Authorize
### Start Session-Authorize
...
...
mirai-api-http/README_CH.md
0 → 100644
View file @
da18aafa
# mirai-api-http
<b>
Mirai-API-http 提供HTTP API供所有语言使用mirai
<br>
</b>
### 开始会话-认证(Authorize)
```
php
路径
:
/
auth
方法
:
POST
```
使用此方法验证你的会话连接, 并将这个会话绑定一个BOT
<br>
注意: 每个会话只能绑定一个BOT.
#### 请求:<br>
| 名字 | 类型 | 可选 | 举例 | 说明 |
| --- | --- | --- | --- | --- |
| key | String |false|U9HSaDXl39ksd918273hU|MIRAI API HTTP key, HTTP API的核心key|
| qq | String |false|1040400290|需要绑定的BOT QQ号|
#### 返回(成功):<br>
| 名字 | 类型 | 举例 | 说明|
| --- | --- | --- | --- |
| success |Boolean |true|是否验证成功|
| session |String |UANSHDKSLAOISN|你的session key|
#### 返回(失败):<br>
| name | type | example|note|
| --- | --- | --- | --- |
| success |Boolean |false|是否验证成功|
| session |String |null|你的session key|
| error |int |0|错误码|
#### 错误码:<br>
| 代码 | 原因|
| --- | --- |
| 0 | 错误的MIRAI API HTTP key |
| 1 | 试图绑定不存在的bot|
session key 是使用以下方法必须携带的
</br>
session key 需要被以cookie的形式上报
<b>
cookies
</b>
:
| name | value |
| --- | --- |
| session |your session key here |
如果出现HTTP 403错误码,代表session key已过期, 需要重新获取
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment