/SMSWithoutBorders-Gateway-Router

Here is the middle-ware that functions as a very limited functionality router for Deku. It communicates with third-party platforms and the cloud API for authenticating users

Primary LanguagePython

Dependencies

  • MySQL

Getting Started

git submodule update --init --recursive
cp configs/example.config.mysql.ini configs/config.mysql.ini
cp configs/example.config.router.ini configs/config.router.ini
cp configs/example.isp.json configs/isp.json

# You can proceed to edit config files with the necessary credentials
# configs/isp.json -> the value for default is true is that isp would be the default number for the gateway
How to Run

create venv

python3 -m virtualenv .venv

activate venv

source .venv/bin/activate

install requirements

pip install -r requirements.txt

start the API

# start routing end points
python3 main.py

# start websocket end points - must be started if going to sync
python3 session_websockets.py

API ENDPOINTS

create new session for QR code

[POST]
/sync/sessions/
// body requirements
{
"auth_key":""
}

// returns
{
"status":200,
"url":""
}