Python flask app that uses voip.ms to manage a number of DID numbers for SMS. Can be used to get mostly anonymous texts and sms verification.
Find a file
2024-06-10 21:36:41 -04:00
app changed default site 2024-06-10 21:35:48 -04:00
.gitignore changed gitignore to prevent config leak 2024-06-10 21:07:02 -04:00
README.md added information about what the server serves 2024-06-10 21:35:24 -04:00
requirements.txt updating to use waitress 2024-06-10 21:25:52 -04:00
run change up the run script to use waitress 2024-06-10 21:36:41 -04:00

voipSMS

Python flask app that uses voip.ms to manage a number of DID numbers for SMS. Can be used to get mostly anonymous texts and sms verification.

How to use

  1. Clone the repo

git clone http://git.community.i2p/anons-voip/voipsms.git && cd voipsms

  1. Create and activate a python venv

python3 -m venv venv && source ./venv/bin/activate

  1. Install requirements

pip install -r requirements.txt

  1. Set your config

vim config.json

Read about how to set up your config here!

  1. Start up the server

./run

Config

The config used in this project uses the JSON format and expects a username and password

Ex:

    {
        "username":"voipms-email",
        "password":"voipms-api-password"
    }

Endpoints

/numbers

Returns a list of numbers in use

Supports: GET

Returns a list of javascript objects with keys: did (int as string), sms_available (boolean as int), mms_available (boolean as int)

/sms

Returns sms/mms messages for a given number

Supports: GET,POST Expects: string did

Returns a list of javascript objects with keys: message (string), did (int as string), contact (string as int), date (date as string), media (list)

/enablesms

[DISABLED] Enables sms feature for a given number

Supports: GET,POST Expects: string did

Returns a boolean as int