Class: SmsService::SmsService
- Inherits:
-
AuthenticatedService
- Object
- Handsoap::Service
- BasicService
- AuthenticatedService
- SmsService::SmsService
- Defined in:
- lib/sms_service/sms_service.rb
Overview
Client to the developer garden sms service. Can be used to send sms and flash sms.
See also:
Constant Summary collapse
- @@SMS_SERVICE_ENDPOINT =
{ :uri => "https://gateway.developer.telekom.com/p3gw-mod-odg-sms/services/SmsService", :version => 1 }
Instance Method Summary collapse
-
#send_flash_sms(numbers, sms_message, originator, environment = 2, account = "") ⇒ Object
Send a flasg sms.
-
#send_sms(numbers, sms_message, originator, environment = 2, account = "") ⇒ Object
Send a sms.
Methods inherited from AuthenticatedService
#initialize, #invoke_authenticated
Methods inherited from BasicService
Constructor Details
This class inherits a constructor from AuthenticatedService
Instance Method Details
#send_flash_sms(numbers, sms_message, originator, environment = 2, account = "") ⇒ Object
Send a flasg sms. A flash sms goes directly to the handy screen. Detailed information about sending of sms can be found under:
Parameters
numbers
-
Up to 10 receivers can be specified separated by commas (“,”).
sms_message
-
Actual message. Can be up to 765 characters. A sms will be charged for each 153 chars.
originator
-
String to be displayed as the originator of the message.
Max. 11 characters. Further chars will be cut of. Allowed chars are [a-zA-Z0-9]. At least one letter needs to be present.
environment
-
Service environment as defined in ServiceEnvironment.
account
-
Currently unused
50 51 52 |
# File 'lib/sms_service/sms_service.rb', line 50 def send_flash_sms(numbers, , originator, environment = 2, account = "") return send_sms_common("sendFlashSMS", numbers, , originator, environment, account) end |
#send_sms(numbers, sms_message, originator, environment = 2, account = "") ⇒ Object
Send a sms. Detailed information about sending of sms can be found under:
Parameters
numbers
-
Up to 10 receivers can be specified separated by commas (“,”).
sms_message
-
Actual message. Can be up to 765 characters. A sms will be charged for each 153 chars.
originator
-
String to be displayed as the originator of the message.
Max. 11 characters. Further chars will be cut of. Allowed chars are [a-zA-Z0-9].
environment
-
Service environment as defined in ServiceEnvironment.
account
-
Currently unused
35 36 37 |
# File 'lib/sms_service/sms_service.rb', line 35 def send_sms(numbers, , originator, environment = 2, account = "") return send_sms_common("sendSMS", numbers, , originator, environment, account) end |