Ruby library for Speedio API
Add this line to your application's Gemfile:
gem 'speedio'
And then execute:
$ bundle
Or install it yourself as:
$ gem install speedio
Speedio.configure do |config|
config.base_url = 'https://server.com' # Server url, default: ENV['SPEEDIO_BASE_URL']
config.token = 'my secret token' # Auth token, default: ENV['SPEEDIO_TOKEN']
end
message = Speedio::Message.new '5511987654321', 'Text message'
message.send
To read messages you have to pass the phone number and the last timestamp.
Speedio::Receiver.new('5511987654321', '123456').all
Will return an object that contains messages, messages_count, last_message_timestamp and contact_info
You can use azk to build and test this project.
- Fork it ( https://github.com/[my-github-username]/speedio/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