twilio.cr - A library to access the Twilio API

Installation

Add this to your application's shard.yml:

dependencies:
  twilio:
    github: bitstopco/twilio.cr

In your terminal run:

shards install

Usage

After the installation, you can use twilio.cr by creating a client object:

require "twilio"

account_sid      = "your_account_sid"
auth_token       = "your_auth_token"

client = Twilio::Client.new(account_sid, auth_token)

All the necessary keys can be viewed in the dashboard.

Send and SMS

#client.messages_create(from, to, message)

client.messages_create("+16105557069", "+14159341234", "Hey there!")

Contributing

  1. Fork it (https://github.com/bitstopco/twilio.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors