public
Description: Globe Mobile API
Homepage: http://www.globelabs.com.ph
Clone URL: git://github.com/gregmoreno/globe-mobile.git
name age message
file .gitignore Fri Apr 03 04:16:49 -0700 2009 Major refactor and support for REST. [Greg Moreno]
file README.rdoc Wed Apr 15 02:24:33 -0700 2009 Use nokogiri for xml parsing. [Greg Moreno]
file Rakefile Sat Jul 26 08:32:42 -0700 2008 Initial architecture and some tests. [Greg Moreno]
file globe-mobile.gemspec Wed Apr 15 02:24:33 -0700 2009 Use nokogiri for xml parsing. [Greg Moreno]
directory lib/ Wed Apr 15 02:24:33 -0700 2009 Use nokogiri for xml parsing. [Greg Moreno]
directory test/ Wed Apr 15 02:24:33 -0700 2009 Use nokogiri for xml parsing. [Greg Moreno]
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