Skip to content
Browse files

adds some more docs and adds @gvc as author

  • Loading branch information...
1 parent 5d22461 commit 28dccc6374a5c5eccf808750dbcf67442b9ae933 @brunnogomes committed Dec 6, 2012
Showing with 13 additions and 8 deletions.
  1. +10 −5 README.md
  2. +1 −1 lib/mobile_pronto/version.rb
  3. +2 −2 mobile_pronto.gemspec
View
15 README.md
@@ -12,19 +12,24 @@ gem 'mobile_pronto', :git => 'git@github.com:brunnogomes/mobile-pronto.git'
```ruby
# your API credential and app name here
-
-mp = MobilePronto::SMS.new('blahblahfd9s8dah6ff4js', 'MYCOOLAPP')
+mp = MobilePronto::SMS.new('AWESOMEAPICREDENTIALS', 'MYAMAZINGAPP')
# Send SMS
# for params see Mobile Pronto docs
-response = mp.send('558186053963', 'brunnogomes', 'This is SPARTA!')
+response = mp.send('558188888888', 'brunnogomes', 'This is SPARTA!')
# 000 means success, see Mobile Pronto docs for other codes meaning
-puts response # '000'
+# 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 test
+## How to run tests
```ruby
rake test
View
2 lib/mobile_pronto/version.rb
@@ -1,3 +1,3 @@
module MobilePronto
- VERSION = "0.1.0"
+ VERSION = "0.2.0"
end
View
4 mobile_pronto.gemspec
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
s.name = "mobile_pronto"
s.version = MobilePronto::VERSION
s.platform = Gem::Platform::RUBY
- s.author = "Brunno Gomes"
- s.email = "brunnogomes@gmail.com"
+ s.authors = ["Brunno Gomes", "Guilherme Carvalho"]
+ s.email = ["brunnolgp@gmail.com", "guilherme@guava.com.br"]
s.homepage = "http://github.com/brunnogomes/mobile-pronto"
s.summary = "MobilePronto API Wrapper"
s.require_paths = ['lib']

0 comments on commit 28dccc6

Please sign in to comment.
Something went wrong with that request. Please try again.