Module: BurstSms::MessagesMultiple
- Included in:
- API
- Defined in:
- lib/burstsms/messages_multiple.rb
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
- #send_message(from, recipients, message, options = {}) ⇒ Object
- #send_message_body(from, recipients, message, options = {}) ⇒ Object
Instance Method Details
#send_message(from, recipients, message, options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/burstsms/messages_multiple.rb', line 6 def (from, recipients, , ={}) @response = post_to_api((from, recipients, , )) Response.parse(@response.body) end |
#send_message_body(from, recipients, message, options = {}) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/burstsms/messages_multiple.rb', line 11 def (from, recipients, , ={}) build_request("messages.multiple", :mobile => sanitize_numbers(recipients), :caller_id => check_valid_sender(from), :message => encode_msg(), :sendtime => (.has_key?(:sendtime) ? [:sendtime] : nil), :validity => (.has_key?(:validity) ? [:validity] : nil), :contact_list => (.has_key?(:contact_list) ? [:contact_list] : nil)) end |