Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yourtion/node-alertover
AlertOver (https://www.alertover.com ) client for Node.js
https://github.com/yourtion/node-alertover
alert alert-messages alertover nodejs npm-package team-alert
Last synced: about 1 month ago
JSON representation
AlertOver (https://www.alertover.com ) client for Node.js
- Host: GitHub
- URL: https://github.com/yourtion/node-alertover
- Owner: yourtion
- License: mit
- Created: 2017-08-23T01:48:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T01:37:36.000Z (over 7 years ago)
- Last Synced: 2024-11-17T19:44:57.088Z (about 1 month ago)
- Topics: alert, alert-messages, alertover, nodejs, npm-package, team-alert
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/alertover
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-alertover
AlertOver (https://www.alertover.com ) client for Node.js
AlertOver Node.js 客户端
## 安装使用使用
```bash
npm install alertover --save
``````javascript
const AlertOver = require('alertover');const client = new AlertOver({
source: 's-f01ff252-6609-47f3-a7ae-xxxxxx', // 默认发送源
receiver: 'g-04523131-19b3-4abd-89f7-xxxxx', // 默认接收组
})client.send('Hello', 'World').then(console.log).catch(console.log)
```详情参数指定
```javascript
/**
* 发送 Alert
*
* @param {String} title 发送标题
* @param {Stringany} content 发送内容
* @param {boolean} [urgency=false] 是否紧急
* @param {String} [receiver=this.receiver] 接收组
* @param {String} [source=this.source] 发送源
* @returns {Promise}
* @memberof AlertOver
*/
send(title, content, urgency = false, receiver = this.receiver, source = this.source)
```