作为开发者,你可能经常遇到这些问题:
Spug推送助手全新升级「多场景推送模式」,用最简单的方式解决消息触达难题!
user_id/app_key
curl 'https://push.spug.cc/xsend/1faf47bcab784bb5b26?title=服务器告警&content=CPU使用率95%&channel=voice|sms|fs'
import requests
body = {'title': '服务器告警', 'content': 'CPU使用率95%', 'channel': 'voice|sms|fs'}
requests.post('https://push.spug.cc/xsend/1faf47bcab784bb56', json=body)
✔️ 监控脚本报警 ✔️ 个人项目通知 ✔️ 自动化流程触发
# 服务器CPU监控脚本示例
curl 'https://push.spug.cc/xsend/<user_id>?title=CPU告警&content=使用率95%&channel=voice'
🔔 系统故障通知 📋 值班提醒 ✅ 工单状态更新
▸ 预置消息模板库 ▸ 灵活绑定成员接收渠道 ▸ 支持多通道并行推送
# 重要信息通知(同时推企业微信+邮件+短信)
# 覆盖模板默认接收对象(curl示例)
curl "https://push.spug.cc/send/<your_template_id>?key1=重要公告"
◼️ 客户渠道配置各异 ◼️ 避免重复对接通道 ◼️ 保障客户数据隔离
// Web应用示例(Node.js)
fetch('https://push.spug.cc/xsend/<APP_KEY>', {
method: 'POST',
body: JSON.stringify({
title: '新的工单提醒',
content: '用户A提交了售后申请'
})
})
https://push.spug.cc/xsend/<user_id>
<user_id>
为用户的唯一标识参数名 | 是否必填 | 说明 | 示例 |
---|---|---|---|
title | 是 | 消息标题 | 服务器告警 |
type | 否 | 消息内容格式(默认text,支持text和markdown) | markdown |
content | 是 | 消息内容(根据type渲染) | CPU使用率95% |
channel | 否 | 指定消息通道,不指定则使用默认通道 | voice|sms |
voice
: 电话sms
: 短信mail
: 邮件wx_mp
: 微信公众号wx
: 企业微信机器人dd
: 钉钉机器人fs
: 飞书机器人原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。