post-chatwork-message
Post a message to a room of the Chatwork. / Chatworkにメッセージを投稿します。
This function will return a Promise. / Promiseを返します。
Usage
Exapmle / 実行例
const apiToken = 'AAA'const roomId = '1234'
Parameters
Name | Type | Description |
---|---|---|
apiToken | string | Chatwork API Token. see 認証方法 - チャットワークAPIドキュメント. |
roomId | string | An Id of the room of the Chatwork. Remember a #!rid is excluded. |
message | string | A message to send. |
Setup
npm install post-chatwork-message
Exapmle / 実行例
const postChatworkMessage = const APIKey = 'AAA'const roomId = '1234'
For development
Test
mocha is used to test. / mochaを使います。
Prepare secrets for Chatwork in token.json
. / Chatworkへの接続情報を書いたtoken.json
ファイルを用意します。
echo '{"token":"YOUR_TOKEN", "roomId":"YOUR_ROOM"}' > token.json
npm test
Deploy
npm version patch
npm publish