Skip to content

new69/teravoz-challenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teravoz-challenger

This project is a challenge applied by Teravoz. It's a simple webhook with Nodejs, Express and Redis

For dashboard you can find out on here.

Getting Started


Prerequisistes

This project needs the Docker installed on your system

Commands

Show all commands

$make

or

$make help

Up server

$make server

It'll create a server on http://localhost:8080/

Stop server

$make stop

Show server status

$make status

Tests

$make test

Endpoints

This project have 3 endpoints

[GET] /

Verify if server is up

{
    "message": "Server online"
}

[GET] /webhook

Get all active calls

{
    "data": [
        {
            "type": "call.new",
            "call_id": "1463669263.30031",
            "code": "123456",
            "direction": "inbound",
            "our_number": "0800000000",
            "their_number": "11999990000",
            "their_number_type": "mobile",
            "timestamp": "2017-01-01T00:00:00Z"
        }
    ]
}

[POST] /webhook

Receive the Teravoz calls. For a complete operation, don't forget to add your user and password from Teravoz API. Access the scr/constants/config.constants.js and change the variables USERNAME and PASSWORD with your credentials

{
    "data": {
        "type": "call.new",
        "call_id": "1463669263.30031",
        "code": "123456",
        "direction": "inbound",
        "our_number": "0800000000",
        "their_number": "11999990000",
        "their_number_type": "mobile",
        "timestamp": "2017-01-01T00:00:00Z"
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors