
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/fiorix/sms-api-server
The sms-api-server is a web server that connects to an SMSC via SMPP v3.4. It provides HTTP and WebSocket APIs for sending short messages and querying their status (when supported by the SMSC). It supports sending delivery receipts via WebSockets or Server-Sent Events.
Developers can build the source code and run. For everyone else, the easiest way to run is via Docker:
docker run --rm -i -t fiorix/sms-api-server [--help]
See this link on the Docker hub for details.
With the server running, send a message:
curl localhost:8080/v1/send -X POST -F src=bart -F dst=lisa -F text=hi
In case of success, the server returns a JSON document containing a message ID that can be used for querying its delivery status later. This functionality is not always available on some SMSCs.
Example:
curl "localhost:8080/v1/query?src=bart&message_id=1234"
To watch for incoming SMS, or delivery receipts:
curl localhost:8080/v1/sse
This is the Server-Sent Events (SSE) endpoint that deliver messages as events, as they arrive on the server.
The /v1/send
endpoint supports the following parameters:
latin1
or ucs2
(optional)final
or failure
(optional)If an encoding is not provided, data is sent as a binary blob and may not display correctly on some devices.
For special characters, try:
curl localhost:8080/v1/send -X POST -F dst=foobar -F enc=ucs2 -F text="é nóis"
This server provides two websocket APIs:
See index.html for details.
Have fun!
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.