This example demonstrates how to send slack messages based on data received from sipgate.io webhooks.
For further information regarding the push functionalities of sipgate.io please visit https://developer.sipgate.io/push-api/api-reference/
- Prerequisites
- Enabling sipgate.io for your sipgate account
- Install dependencies:
- Execution
- Common Issues
- Related
- Contact Us
- License
- External Libraries
- Node.js >= 10.15.3
In order to use sipgate.io, you need to book the corresponding package in your sipgate account. The most basic package is the free sipgate.io S package.
If you use sipgate basic or simquadrat you can book packages in your product's feature store. If you are a sipgate team user logged in with an admin account you can find the option under Account Administration > Plans & Packages.
Navigate to the project's root directory and run:
npm install
Create a webhook in your slack control panel. Details can be found in the official slack documentation.
Create the .env
file by copying the .env.example
. Set the values according to the comment above each variable.
The token should have the history:read
scope. For more information about personal access tokens visit https://www.sipgate.io/rest-api/authentication#personalAccessToken.
Run the application:
npm start
Alternatively, you can set the environment variables as part of the shell command.
SIPGATE_TOKEN_ID=token_id SIPGATE_TOKEN=token SLACK_WEBHOOK_URL=https://your.slack.webhook.url npm start
Possible reasons are:
- the sipgate.io feature is not booked for your account
See the section Enabling sipgate.io for your sipgate account for instruction on how to book sipgate.io
Please let us know how we can improve this example. If you have a specific feature request or found a bug, please use Issues or fork this repository and send a pull request with your improvements.
This project is licensed under The Unlicense