- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
获取推送渠道列表
开发中
GET
/api/push
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9898/api/push'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
array [object {2}]
必需
name
string
推送渠道配置文件名称
type
string
推动渠道类型
示例
{
"success": true,
"message": null,
"data": [
{
"name": "email-example",
"type": "smtp",
"config": {
"props": {
"mail.smtp.port": "587",
"mail.smtp.auth": true,
"mail.smtp.starttls.enable": true,
"mail.smtp.host": "smtp.qq.com"
},
"username": "2908803755@qq.com",
"password": "************************",
"sender": "2908803755@qq.com",
"senderName": "PeerBanHelper",
"receivers": [
"2908803755@qq.com"
]
}
},
{
"name": "qqmail",
"type": "smtp",
"config": {
"props": {
"mail.smtp.port": "587",
"mail.smtp.auth": true,
"mail.smtp.starttls.enable": false,
"mail.smtp.host": "smtp.qq.com"
},
"username": "2908803755@qq.com",
"password": "jtofpvzeejwdddij",
"sender": "2908803755@qq.com",
"senderName": "PeerBanHelper",
"receivers": [
"2908803755@qq.com"
]
}
},
{
"name": "pushplus+",
"type": "pushplus",
"config": {
"token": "1234567890",
"topic": null,
"template": null,
"channel": null
}
},
{
"name": "Server酱",
"type": "serverchan",
"config": {
"sendKey": "",
"channel": "channel",
"openid": "openid"
}
},
{
"name": "Telegram纸飞机",
"type": "telegram",
"config": {
"token": "1234567890",
"chatid": "123456789"
}
}
]
}
🟠429IP地址因频繁失败尝试而被封禁
🟠403未登录或Token错误
🔴500内部服务器错误
修改于 2024-12-01 07:14:14