Api Doc
Api Base Host
https://api.chainbot.io/api/v1
Channel
查询channel
GET /notify/channels
Parameters
current_pageint, 当前查询页,从 1 开始计数per_page: int, 每页返回数量
Response
{
"code": 0,
"msg": "success",
"data": {
"data": [
{
"id": 1367,
"user_id": 2137,
"name": "Pushover",
"platform": "Pushover",
"token": "token",
"channel": "channel",
"channel_type": "",
"is_default": 0,
"priority": 1,
"others": null
},
{
"id": 1075,
"user_id": 2137,
"name": "Webhook",
"platform": "Webhook",
"token": "",
"channel": "http://webhook.io/url",
"channel_type": "",
"is_default": 1,
"priority": 0,
"others": null
}
],
"current_page": 1,
"per_page": "999",
"total": 2
}
}添加 channel
POST /notify/channels
Parameters
Response
删除 channel
DELETE /notify/channels/{channel_id}
Parameters
channel_id
Response
Bot
创建 bot
POST /bots
Parameters
Address Bot Example
Response
删除 bot
DELETE /bots/{bot_id}
Parameters
bot_id
Response
更新 bot
PUT /bots/{bot_id}
Parameters
Address Bot Example
Response
Subscribe
订阅 bot
POST /subscriptions
Parameters
Response
取消订阅 bot
DELETE /subscriptions/{subscription_id}
Parameters
subscription_id
Response
最后更新于