Add this to your application's shard.yml
:
dependencies:
twilio:
github: bitstopco/twilio.cr
In your terminal run:
shards install
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!")
- Fork it (https://github.com/bitstopco/twilio.cr/fork)
- 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 a new Pull Request
- arubinofaux arubinofaux - creator, maintainer