lib/smshelper/api/esendex.rb in smshelper-0.2.2 vs lib/smshelper/api/esendex.rb in smshelper-0.2.3
- old
+ new
@@ -32,10 +32,10 @@
"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]
+ (@sent_message_ids << resp.to_hash[:send_message_full_response][:send_message_full_result]).first
end
def get_inbox
client = connect 'inbox'
resp = client.request(:com, :get_messages) {|soap| soap.header["com:MessengerHeader"] = @header}