0.0
No commit activity in last 3 years
No release in over 3 years
MobilePronto API Wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

MobilePronto API Wrapper

How to use

Just put in your Gemfile

gem 'mobile_pronto', :git => 'git@github.com: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