A simple Flask based GUNet SMS server look-alike
437
A simple Flask based GUNet SMS server look-alike. Does the following:
{
"serviceId": "<service name>",
"messageId": "<message-id>",
"recipient": "<phone number>",
"institution": "<institution name>",
"pre-shared key": "<key>",
"replacements": ["<string1>", "<string2>", "..."] // optional
}
{
"serviceId": "data[serviceId]",
"errorCode": "E-001",
"error": "Missing fields: {', '.join(missing_fields)}"
}
{
"serviceId": "data[serviceId]",
"errorCode": "",
"error": ""
}
docker compose -f docker-compose.build.yaml build sms-serversms folder: docker build -t gunet/simple-sms-server .docker-compose.testers.yaml (listens of port 5000)docker run --rm --name sms-server -p 5000:80 gunet/simple-sms-server (will remain in foreground)curl:curl -X POST http://localhost:5000/sendSMS \
-H "Content-Type: application/json" \
-d '{
"serviceId": "gradeService",
"messageId": "12345",
"recipient": "+123456789",
"institution": "SomeSchool",
"pre-shared key": "SECRET123"
}'
Content type
Image
Digest
sha256:f046ef060…
Size
51.9 MB
Last updated
12 months ago
docker pull gunet/simple-sms-server