lib/smsified/subscriptions.rb in smsified-0.1.5 vs lib/smsified/subscriptions.rb in smsified-0.1.6

- old
+ new

@@ -62,11 +62,11 @@ # @example # subscriptions.create_outbound_subscription('tel:+14155551212', :notify_url => 'http://foobar.com') def create_outbound_subscription(sender_address, options) Response.new self.class.post("/smsmessaging/outbound/#{sender_address}/subscriptions", :basic_auth => @auth, - :body => camelcase_keys(options)) + :body => build_query_string(options)) end ## # Deletes an inbound subscription # @@ -123,11 +123,11 @@ # @example # subscriptions.update_inbound_subscription('89edd71c1c7f3d349f9a3a4d5d2d410c', :notify_url => 'foobar') def update_inbound_subscription(subscription_id, options) Response.new self.class.post("/smsmessaging/inbound/subscriptions/#{subscription_id}", :basic_auth => @auth, - :body => camelcase_keys(options)) + :body => build_query_string(options)) end ## # Updates an outbound subscription # @@ -140,9 +140,9 @@ # @example # subscriptions.update_outbound_subscription('tel:+14155551212', :notify_url => 'foobar') def update_outbound_subscription(sender_address, options) Response.new self.class.post("/smsmessaging/outbound/#{sender_address}/subscriptions", :basic_auth => @auth, - :body => camelcase_keys(options)) + :body => build_query_string(options)) end end end \ No newline at end of file