lib/smshelper/api/esendex.rb in smshelper-0.4.10 vs lib/smshelper/api/esendex.rb in smshelper-0.4.11

- old
+ new

@@ -14,13 +14,13 @@ "com:Password" => config.esendex[:passwd], "com:Account" => config.esendex[:acc]} Savon.configure do |config| config.raise_errors = true - config.log = false - config.log_level = :error - HTTPI.log = false + config.log = true + config.log_level = :debug + HTTPI.log = true end @inbox = Array.new super end @@ -31,10 +31,9 @@ "com:recipient" => message.recipient, "com:body" => message.text, "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] resp.to_hash[:send_message_full_response][:send_message_full_result] end