# amazon-chime-webhooks-nodejs **Repository Path**: mirrors_awslabs/amazon-chime-webhooks-nodejs ## Basic Information - **Project Name**: amazon-chime-webhooks-nodejs - **Description**: Send Amazon Chime messages using webhooks. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Amazon Chime Send Amazon Chime messages using webhooks. - [Amazon Chime](https://aws.amazon.com/chime) - [Webhooks for Amazon Chime](https://docs.aws.amazon.com/chime/latest/dg/webhooks.html) - [Adding Webhooks to Chat Rooms](https://docs.aws.amazon.com/chime/latest/ug/webhooks.html) ```javascript const Chime = require('chime'); (async () => { try { await Chime.sendMessage('hello world', ''); } catch (err) { // do something with err } })(); ``` ## Class: Chime Added in: v1.0.0 ### new Chime(url[, options]) Added in: v1.0.0 - `url` `` - Webhook URL - `options` `` Overridden by `room.sendMessage()` options. - `markdown` `` - Send message using markdown syntax. **Default:** `true` - Returns: `` ```javascript const room = new Chime(''); ``` ### Chime.sendMessage(message, url[, options]) Added in: v1.0.0 - `message` `` - `url` `` - Webhook URL - `options` `` - `markdown` `` - Send message using markdown syntax. **Default:** `true` - Returns: `>` - `messageId` `` - `roomId` `` Sends message. ```javascript const result = await Chime.sendMessage('hello world', ''); console.log(result); // Prints something like: // { // messageId: '1d048345-443a-4ad7-8247-69cf95bc5b73', // roomId: '3a5be182-197c-4b48-8efe-0c6d3a0f24b1' // } ``` ### room.sendMessage(message[, options]) Added in: v1.0.0 - `message` `` - `options` `` - `markdown` `` - Send message using markdown syntax. - Returns: `>` - `messageId` `` - `roomId` `` Sends message. ```javascript const result = await room.sendMessage('hello world'); console.log(result); // Prints something like: // { // messageId: '1d048345-443a-4ad7-8247-69cf95bc5b73', // roomId: '3a5be182-197c-4b48-8efe-0c6d3a0f24b1' // } ``` ## Contributions See [CONTRIBUTING](CONTRIBUTING.md) for more information. ## License This project is licensed under the [Apache-2.0 License](LICENSE).