lib/smshelper/api/esendex.rb in smshelper-0.2.5 vs lib/smshelper/api/esendex.rb in smshelper-0.2.6
- old
+ new
@@ -32,10 +32,11 @@
"com:type" => message_kind,
"com:originator" => message.sender}
body = body.merge(@extra_options) unless @extra_options.nil?
resp = client.request(:com, :send_message_full) {|soap| soap.header["com:MessengerHeader"] = @header; soap.body = body}
- (@sent_message_ids << resp.to_hash[:send_message_full_response][:send_message_full_result]).first
+ @sent_message_ids << resp.to_hash[:send_message_full_response][:send_message_full_result]
+ resp.to_hash[:send_message_full_response][:send_message_full_result]
end
def get_inbox
client = connect 'inbox'
resp = client.request(:com, :get_messages) {|soap| soap.header["com:MessengerHeader"] = @header}