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.
app | ||
.gitignore | ||
README.md | ||
requirements.txt | ||
run |
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
- Clone the repo
git clone http://git.community.i2p/anons-voip/voipsms.git && cd voipsms
- Create and activate a python venv
python3 -m venv venv && source ./venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Set your config
vim config.json
Read about how to set up your config here!
- 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