locasms

Installation

Add this line to your application's Gemfile:

gem'locasms'

And then execute:

$ bundle

Or install it yourself as:

$ gem install locasms

Usage

Simple example:

require'locasms'cli=LocaSMS::Client.new'LOGIN','PASSWORD'# delivering message to one mobile
cli.deliver'my message','1155559999'# delivering the same message to multiple mobliles at once
cli.deliver'my message','1199998888,5500002222'cli.deliver'my message','1199998888','5500002222'cli.deliver'my message',['1199998888','5500002222']cli.deliver'my message',%w(11999988885500002222)# scheduling the deliver of a message to one mobile
cli.deliver_at'my message','2013-10-12 20:33:00','1155559999'# scheduling the deliver of a message to multiple mobiles at once
cli.deliver_at'my message','2013-10-12 20:33:00','1199998888,5500002222'cli.deliver_at'my message','2013-10-12 20:33:00','1199998888','5500002222'cli.deliver_at'my message','2013-10-12 20:33:00',['1199998888','5500002222']cli.deliver_at'my message','2013-10-12 20:33:00',%w(11999988885500002222)# geting the remaining balance
cli.balance# geting the status of a campaign
cli.campaign_status'0000'# holding a campaign
cli.campaign_hold'0000'# resuming a campaign
cli.campaign_release'0000'