Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

noflo-twilio

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noflo-twilio

Wrapper around the twilio API

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Twilio wrapper
Build Status Dependency Status NPM version Stories in Ready

Wrapper around the twilio API

This package is incomplete. Please contribute new components and graphs. I'll try to incorporate as soon as time allows.

Testing

This package requires manual testing because Twilio only allows private keys for testing. See https://www.twilio.com/docs/api/rest/test-credentials for more information.

Run grunt test:all to test manually.

Usage

Client

Create a twilio client object given the account ID and the auth token of your twilio account.

In-ports
  • ACCOUNT: the account ID
  • TOKEN: the auth token
Out-ports
  • OUT: a twilio client object

Sms

Send/Receive SMS messages. See the twilio doc on receiving SMS messages and sending SMS messages for more information.

In-ports
  • CLIENT: the twilio client created by Client component
  • SEND: the POST parameters as outlined in the doc; each packet is an object of parameters. Multiple packets send multiple SMS messages
  • RECEIVE: message SIDs; each packet is a string of an SID. An empty connection with no packets or no packets of SID strings which start with "SM" lists all messages
Out-ports
  • OUT: a message object for each incoming packet. See doc for what would be in a returned object
Examples

(Adapted from the twilio doc) Send an SMS from 415-814-1829 to 415-935-2345 begging Jenny for a second chance and print the returned object to screen.

ClientGen(twilio/Client) OUT -> CLIENT Sms(twilio/Sms)
'{"body":"Jenny please?! I love you <3","to":"+14159352345","from":"+14158141829"}' OUT -> IN Message(string/ParseJson)
Message() OUT -> SEND Sms() OUT -> IN Output(Output)

Getting two messages by their SIDs.

ClientGen(twilio/Client) OUT -> CLIENT Sms(twilio/Sms)
'SM800f449d0399ed014aae2bcc0cc2f2ec\nSM800f449d0399ed014aae2bcc0cc2f2ed' OUT -> IN Sids(SplitStr)
Sids() OUT -> RECEIVE Sms() OUT -> IN Output(Output)

Listing all messages.

ClientGen(twilio/Client) OUT -> CLIENT Sms(twilio/Sms)
'' -> RECEIVE Sms() OUT -> IN Output(Output)

FAQs

Package last updated on 09 Sep 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc