Skip to content

brunnogomes/mobile-pronto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MobilePronto API Wrapper

How to use

Just put in your Gemfile

gem 'mobile_pronto', :git => '[email protected]:brunnogomes/mobile-pronto.git'

Starting

# your API credential and app name here
mp = MobilePronto::SMS.new('AWESOMEAPICREDENTIALS', 'MYAMAZINGAPP')

# Send SMS
# for params see Mobile Pronto docs
response = mp.send('558188888888', 'brunnogomes', 'This is SPARTA!')

# 000 means success, see Mobile Pronto docs for other codes meaning
# the part after the : is the message id
puts response # '000:12345678910'

# Get a message delivery status
puts mp.status('12345678910')

# Get credits balance(in Brazilian Reais - R$)
puts mp.credits # '6.00'

How to run tests

rake test

About

Mobile Pronto API Wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages