public
Description: Globe Mobile API
Homepage: http://www.globelabs.com.ph
Clone URL: git://github.com/gregmoreno/globe-mobile.git
Greg Moreno (author)
Tue Apr 14 23:00:17 -0700 2009
commit  0630b8d1494062715643b3244e47757c12bbc5f9
tree    07e14486f8c27e60fc425fd4773d61f343a594b4
parent  489090e936c7f4bd4ae37fbf78dcf5c2b86e6d01
name age message
file .gitignore Loading commit data...
file README.rdoc
file Rakefile
file globe-mobile.gemspec
directory lib/
directory test/
README.rdoc

Globe-Mobile API in Ruby

Developers

Description

globe-mobile provides a Ruby-based interface to Globe Telecoms Mobile API platform. To learn more of the Globe’s API, visit www.globelabs.com.ph

External gem dependencies

For using the API:

  • SOAP4R (tested with soap4r-1.5.8)
  • XMLSimple (tested with xml-simple-1.0.12)

For running tests

  • RSpec

Usage examples

  require 'rubygems'
  gem 'globe-mobile', '>= 0.0.2'
  require 'mobile'

  client = Mobile::Globe::SOAP::Client.configure do |config|
    config.user_name = 'globeUser'
    config.user_pin  = 'someRandomPin'
  end

  response = client.send_sms(:to_number => '09062224406', :message => 'hello from globe api')
  puts response.sms_accepted? ? "SMS sent" : response