This project is a node express app that demonstrates processing of event streams data that is then used to model data as it appears in flex insights reporting
This project is provided 'as is' to demonstrate how data can be transformed and is not provided as a production ready solution. It comes with no warranty and no support and it is not designed for scale. Anyone using this project should consider challenges with consuming events out of order and at large volumes.
-
Populate the given variables when prompted
TWILIO_ACCOUNT_SID- the account sid of your twilio account - used for calling Twilio APIs //TODOTWILIO_AUTH_TOKEN- the auth token for your twilio account - used for the authentication of requests //TODOLOCALE- Locale as setup in flex insights eg en-USTIMEZONE- Timezone of flex insights eg "UTC" or "America/New_York"
-
You're all set, the backend is ready. You can access it on https://<HEROKU_APP_NAME>.herokuapp.com
- Clone repository using
git clone https://github.com/jhunter-twilio/twilio-event-streams-reporting-example.git - run
npm install - clone the .env.sample to .env
- update .env as approproate, descriptions above
- run
ngrok http -subdomain=<preferred-subdomain> 3000 - start server using
npm start
-
Create event streams sink to point to either your heroku
https://<HEROKU_APP_NAME>.herokuapp.com/eventsor ngrok domainhttps://<subdomain>.ngrok.io/events -
Create event streams subscription for taskrouter (v2) events
- task-queue.entered
- task.transfer-initiated
- reservation.created
- reservation.accepted
- reservation.rejected
- reservation.timeout
- reservation.canceled
- reservation.rescinded
- reservation.wrapup
- reservation.completed
- task.canceled
- task.transfer-failed
v0.0.1 - initial release
Please be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️