创建推送渠道
开发中
PUT
/api/push
当 DraftPushProvider 中的 name 和请求 Param {name} 不同时,PBH 会按照重命名处理,删除旧的并添加新的
{
"name": "qqmail",
"type": "smtp",
"config": {
"host": "smtp.qq.com",
"port": "587",
"auth": true,
"username": "2908803755@qq.com",
"password": "********************",
"sender": "2908803755@qq.com",
"senderName": "PeerBanHelper",
"receivers": [
"2908803755@qq.com"
],
"encryption": "STARTTLS", // 常量,NONE, STARTTLS, ENFORCE_STARTTLS, SSLTLS
"sendPartial": true
}
}
{
"name": "pushplus+",
"type": "pushplus",
"config": {
"token": "1234567890",
"topic": null,
"template": null,
"channel": null
}
}
{
"name": "Server酱",
"type": "serverchan",
"config": {
"sendkey": "1234567890",
"channel": "channel",
"openid": "openid"
}
}
{
"name": "Telegram纸飞机",
"type": "telegram",
"config": {
"token": "1234567890",
"chatid": "123456789"
}
}
{
"name": "Bark APP",
"type": "bark",
"config": {
"device_key": "somekeyhere"
}
}
请求参数
Body 参数application/json
示例代码
返回响应
修改于 2025-03-04 08:36:46