idobata-client

0.0.2 • Public • Published

(UNOFFICIAL) Idobata Client for Node.js

Post messages in HTML format via generic webhook.

Usage

API_TOKEN     = process.env.HUBOT_IDOBATA_API_TOKEN
IdobataClient = require('idobata-client')
 
module.exports = (robot) ->
  robot.respond /HELLO$/i(msg) ->
    client = new IdobataClient('https://idobata.io'API_TOKEN)
    client.postViaWebhook(msg.message.data.room_idformat: 'html'source: '<h1>hello</h1>')

Readme

Keywords

Package Sidebar

Install

npm i idobata-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • mtsmfm