Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Latest commit

 

History

History
41 lines (25 loc) · 1006 Bytes

File metadata and controls

41 lines (25 loc) · 1006 Bytes

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

For using the API:

  • SOAP4R (tested with soap4r-1.5.8)

  • XMLSimple (tested with xml-simple-1.0.12)

For running tests

  • RSpec

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