📖 接口调用文档 & 示例代码
方式 1:标准 GET 请求(最简便)
curl "https://push.xmsmp.com/send?key=xmsmp_sec_20268899&title=标题&content=正文内容"
方式 2:极简路径调用(类似 Bark / Server酱)
curl "https://push.xmsmp.com/xmsmp_sec_20268899/服务器警报/CPU使用率已突破90%"
方式 3:标准 JSON POST 请求(适合脚本与系统对接)
curl -X POST "https://push.xmsmp.com/send" \
-H "Content-Type: application/json" \
-d '{"key": "xmsmp_sec_20268899", "title": "备份完成", "content": "数据库备份耗时12秒"}'
Python 代码示例
import requests
requests.get("https://push.xmsmp.com/send", params={
"key": "xmsmp_sec_20268899",
"title": "任务完成",
"content": "数据采集任务已顺利结束"
})