Skip to content

smswithoutborders/RelaySMS-GatewayClient-Remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gateway Client Remote

Getting Started

Prerequisites

Make sure you have Python 3.7 or higher installed on your system.

Setting Up the Environment

  1. Clone the Repository:

    git clone https://github.com/smswithoutborders/gateway-client-remote.git
    cd gateway-client-remote
  2. Create a Virtual Environment:

    python3 -m venv venv
  3. Activate the Virtual Environment:

    . venv/bin/activate
  4. Install Requirements:

    pip install -r requirements.txt

Running the Application

  1. Start the Application:

    GATEWAY_SERVER_HOST= \
    GATEWAY_SERVER_PORT= \
    PORT= \
    python3 app.py

API Documentation

Twilio Callback Endpoint

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published