Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

parafuzo/speedio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speedio

wercker status

Ruby library for Speedio API

Installation

Add this line to your application's Gemfile:

gem 'speedio'

And then execute:

$ bundle

Or install it yourself as:

$ gem install speedio

Config

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

Usage

Sending a message

message = Speedio::Message.new '5511987654321', 'Text message'
message.send

Reading messages

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

AZK

You can use azk to build and test this project.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/speedio/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

About

Ruby library for Speedio API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published