TwilioClient
Simple interface for initializing with your twilio account credentials and sending a text. You Can also access the Twilio client directly with TwilioClient.client
Initialize with account sid, account token and a from number
Installation
Add this line to your application's Gemfile:
gem 'twilio-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install twilio-client
Configuration
TwilioClient.configure({
sid: 'string',
token: 'string',
from: '10 digit number'
})
Public Class Methods
- TwilioClient.send_text(to, body)
- TwilioClient.client (to access the twilio client directly)
Test Mode
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request