Modules@robinpath/sms
@robinpath/sms
0.1.0PublicSMS sending via Twilio and Vonage with validation, formatting, lookup, and cost estimation
@robinpath/sms
SMS sending via Twilio and Vonage with validation, formatting, lookup, and cost estimation
Why use this module?
The sms module lets you:
- Send an SMS message
- Send SMS to multiple recipients
- Validate E.164 phone format
- Format phone to E.164
- Lookup phone info via Twilio
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/sms
Quick Start
1. Set up credentials
sms.configure "main" {"provider": "twilio", "accountSid": "AC...", "authToken": "..."}
2. Send an SMS message
sms.send "main" "+15559876543" "Your code is 1234"
Available Functions
| Function | Description |
|---|---|
sms.configure | Configure SMS provider (Twilio or Vonage) |
sms.send | Send an SMS message |
sms.sendBulk | Send SMS to multiple recipients |
sms.validate | Validate E.164 phone format |
sms.format | Format phone to E.164 |
sms.lookup | Lookup phone info via Twilio |
sms.status | Check message delivery status |
sms.estimateCost | Estimate SMS cost |
sms.isGsm | Check if message uses GSM-7 encoding |
sms.segmentCount | Count SMS segments |
Examples
Send an SMS message
sms.send "main" "+15559876543" "Your code is 1234"
Send SMS to multiple recipients
sms.sendBulk "main" ["+155511111", "+155522222"] "Hello!"
Validate E.164 phone format
sms.validate "+15551234567"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/sms";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
sms.configure "main" {"provider": "twilio", "accountSid": "AC...", "authToken": "..."}
sms.send "main" "+15559876543" "Your code is 1234"
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/slack— Slack module for complementary functionality@robinpath/discord— Discord module for complementary functionality@robinpath/teams— Teams module for complementary functionality@robinpath/telegram— Telegram module for complementary functionality@robinpath/whatsapp— WhatsApp module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
communication
0
@robinpath/discord
v0.1.0robinpath
Discord module for RobinPath.
0 downloads
...
communication
0
@robinpath/notification
v0.1.1robinpath
Unified notifications: Slack, Discord, Telegram, and MS Teams via webhooks
0 downloads
...
communication
0
@robinpath/notify
v0.1.1robinpath
Notify module for RobinPath.
0 downloads
...
communication
0
@robinpath/slack
v0.1.0robinpath
Slack Web API and Incoming Webhooks client for messaging, channels, reactions, file uploads, and user management
0 downloads
...
Install
$ robinpath install @robinpath/sms Version0.1.0
LicenseMIT
Unpacked Size5.9 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

