lib/urbanairship/devices/channel_uninstall.rb in urbanairship-6.0.0 vs lib/urbanairship/devices/channel_uninstall.rb in urbanairship-7.0.0
- old
+ new
@@ -21,11 +21,11 @@
'Maximum of 200 channel uninstalls exceeded.' if chan_num > 200
response = @client.send_request(
method: 'POST',
body: JSON.dump(channels),
- url: channel_url('uninstall/'),
+ path: channel_path('uninstall/'),
content_type: 'application/json'
)
logger.info { "Successfully uninstalled #{chan_num} channels." }
response
@@ -51,10 +51,10 @@
}
response = @client.send_request(
method: 'POST',
body: JSON.dump(body),
- url: open_channel_url('uninstall/'),
+ path: open_channel_path('uninstall/'),
content_type: 'application/json'
)
logger.info { "Successfully uninstalled open channel with address: #{address}"}
response