lib/gateway.rb in twilio_contactable-0.7.2 vs lib/gateway.rb in twilio_contactable-0.7.3

- old
+ new

@@ -51,11 +51,11 @@ 'Url' => url end def deliver_sms(message, to, from = nil) deliver :sms, - 'Message' => message, + 'Body' => message, 'To' => to, 'From' => from end def account @@ -83,20 +83,14 @@ 'SMS/Messages' when :voice 'Calls' end - response = post service, data - - Net::HTTPCreated == response.code_type ? - TwilioContactable::Gateway::Success : - TwilioContactable::Gateway::Error + post service, data end def post(service, data = {}) url = "/#{API_VERSION}/Accounts/#{TwilioContactable.configuration.client_id}/#{service}" - puts "putting data: #{data.inspect}" - puts "to url: #{url}" account.request url, "POST", data end end