Skip to content

expo/twilite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twilite

Lightweight Twilio client that only sends SMS messages.

Usage

Minimal Example of Sending a Test Message

let twilite = require('twilite');

let tw = twilite('ACXXX_YOUR_AccountSid_XXX', '79593_YOUR_AuthToken_XXX', '+14125551212');
await tw.sendMessageAsync({To: '+16505551212'});

Using More Options

let twilite = require('twilite');

let tw = twilite({
        AccountSid: 'ACXXX_AccountSid_XXX', // Your AccountSid
        AuthToken: '23424ab_AuthToken_', // Your AuthToken
        From: '412-555-1212', // Default From # (optional)
    });
    
await tw.sendMessageAsync({
    To: '650-555-1212', // # to send the message to
    Body: "This is the content of the message.",
    MediaUrl: 'http://ccheever.com/Duckling.png',
    From: '412-555-1212', // A Twilio phone # that the account you're using controls
})

About

Twilio client that is lighter weight than the node one they generate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •