Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pchaigno/hubot-notify
Exposes Hubot via a simple REST API to send messages to rooms and users.
https://github.com/pchaigno/hubot-notify
api-rest hubot
Last synced: 3 months ago
JSON representation
Exposes Hubot via a simple REST API to send messages to rooms and users.
- Host: GitHub
- URL: https://github.com/pchaigno/hubot-notify
- Owner: pchaigno
- License: mit
- Created: 2016-05-05T11:49:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-23T19:34:14.000Z (over 8 years ago)
- Last Synced: 2024-10-05T20:04:49.956Z (3 months ago)
- Topics: api-rest, hubot
- Language: CoffeeScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hubot-notify
[![Build Status](https://travis-ci.org/pchaigno/hubot-notify.svg?branch=master)](https://travis-ci.org/pchaigno/hubot-notify)
[![Coverage Status](https://coveralls.io/repos/github/pchaigno/hubot-notify/badge.svg?branch=master)](https://coveralls.io/github/pchaigno/hubot-notify?branch=master)Exposes Hubot via a simple REST API to send messages to rooms and users.
## Installation
In your Hubot project directory, run:
```
npm install --save hubot-notify
```Then add hubot-notify to your `external-scripts.json`:
```json
[
"hubot-notify"
]
```## Examples
To send a private message to john:
```bash
curl --data 'message=Hello%20john!' http://127.0.0.1:8080/notify/pchaigno
```To post a message on `##project` (replace `#` with `_`):
```bash
curl --data 'message=Hi%20everyone!' http://127.0.0.1:8080/notify/__project
```To send a message to john on `##project` (replace `#` with `_`):
```bash
curl --data 'message=Hi%20john!' http://127.0.0.1:8080/notify/__project/john
```## License
This package is under [MIT license](LICENSE).