SMS sending service with HTTP REST interface (using https://bsms.tele2.ru/api).
- curl
- docker
- docker-compose
docker-compose up
curl -XPOST http://localhost:8000/sms -d '{"phone": "9271234567", "text": "Hello, world"}'
{"status":"success","data":{"sms_id":"873487834"}}
{"status":"error","data":{"error":"message"}}
curl -XGET http://localhost:8000/sms/873487834
{"status":"success","data":{"delivery_status": "delivered"}}
{"status":"error","data":{"error":"message"}}
API documentation will be also available after complete project setup at http://localhost:8000/apidocs
Name | Default value |
---|---|
LISTEN_ADDR | ":8000" |
SMS_GATEWAY_ENABLED | "false" |
SMS_GATEWAY_URL | "https://bsms.tele2.ru/api" |
SMS_GATEWAY_LOGIN | "" |
SMS_GATEWAY_PASSWORD | "" |
SMS_GATEWAY_SHORTCODE | "" |