Module: PigeonFu

Defined in:
lib/pigeon_fu/exceptions.rb,
lib/pigeon_fu/fax.rb,
lib/pigeon_fu/ivr.rb,
lib/pigeon_fu/sms.rb,
lib/pigeon_fu/base.rb,
lib/pigeon_fu/call.rb,
lib/pigeon_fu/rest.rb,
lib/pigeon_fu/version.rb,
lib/pigeon_fu/authenticate.rb,
lib/pigeon_fu/command_line.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Base, Rest Classes: Authenticate, Call, CommandLine, Exception, Fax, Ivr, SendSMSFailed, Sms, Unauthorized

Constant Summary collapse

SESS_INTERFACE_URL =
'http://open.189works.com/InterfaceForAP/GetSessionID.aspx'
AUTH_INTERFACE_URL =
'http://open.189works.com/InterfaceForAP/Authv1.1.aspx'
SMS_INTERFACE_CODE =
10000033
SMS_INTERFACE_URL =
'http://ims.open.ctfactory.com/ims/ghsendim.php'
CALL_INTERFACE_CODE =
10000034
CALL_INTERFACE_URL =
''
IVR_INTERFACE_CODE =
10000108
IVR_INTERFACE_URL =
''
FAX_INTERFACE_CODE =
0
FAX_INTERFACE_URL =
''
PHONE_NUMBER_REGEX =

The overwhelming majority phone numbers in China should be supported.

/^\d{8,13}$/
VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.send_sms(options = {}) ⇒ Object



21
22
23
# File 'lib/pigeon_fu/base.rb', line 21

def send_sms(options={})
  PigeonFu::Sms.send_message(options)
end