@robinpath/twilio
v0.1.1
Published
Twilio module for RobinPath.
Downloads
128
Readme
@robinpath/twilio
Twilio module for RobinPath.
Why use this module?
The twilio module lets you:
- sendSms
- sendMms
- listMessages
- getMessage
- makeCall
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/twilioQuick Start
1. Set up credentials
twilio.setCredentials "your-credentials"2. sendSms
twilio.sendSmsAvailable Functions
| Function | Description |
|----------|-------------|
| twilio.setCredentials | Configure twilio credentials. |
| twilio.sendSms | sendSms |
| twilio.sendMms | sendMms |
| twilio.listMessages | listMessages |
| twilio.getMessage | getMessage |
| twilio.makeCall | makeCall |
| twilio.listCalls | listCalls |
| twilio.getCall | getCall |
| twilio.listPhoneNumbers | listPhoneNumbers |
| twilio.lookupPhoneNumber | lookupPhoneNumber |
| twilio.createVerifyService | createVerifyService |
| twilio.sendVerification | sendVerification |
| twilio.checkVerification | checkVerification |
| twilio.listConversations | listConversations |
| twilio.createConversation | createConversation |
| twilio.addParticipant | addParticipant |
| twilio.sendConversationMessage | sendConversationMessage |
| twilio.getAccountInfo | getAccountInfo |
| twilio.deleteMessage | deleteMessage |
Examples
sendSms
twilio.sendSmssendMms
twilio.sendMmslistMessages
twilio.listMessagesIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/twilio";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
twilio.setCredentials "your-credentials"
twilio.sendSms
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
