Make sure you have Python 3.7 or higher installed on your system.
-
Clone the Repository:
git clone https://github.com/smswithoutborders/gateway-client-remote.git cd gateway-client-remote
-
Create a Virtual Environment:
python3 -m venv venv
-
Activate the Virtual Environment:
. venv/bin/activate
-
Install Requirements:
pip install -r requirements.txt
-
Start the Application:
GATEWAY_SERVER_HOST= \ GATEWAY_SERVER_PORT= \ PORT= \ python3 app.py
Endpoint: /v1/twilio-sms
Method: POST
Description: Receives message from Twilio and forwards it to gateway server.
Request
- Content-Type:
application/x-www-form-urlencoded
- Body Parameters: The endpoint expects data in the form of URL-encoded key-value pairs. Example parameters might include:
From
: The sender's phone number.To
: The recipient's phone number.Body
: The content of the message.
Example Request:
curl -X POST "http://localhost:7000/v1/twilio-sms" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "From=+1234567890&To=+1234567890&Body=Hello%20World"