148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
# File 'lib/sms/SMSSend.rb', line 148
def cancelDeliveryNotifications(subscriptionId)
baseurl=@endpoints.getCancelSMSDeliverySubscriptionEndpoint()
requestProcessor=JSONRequest.new()
if baseurl.index('{subscriptionId}')!=nil then
baseurl=baseurl.gsub('{subscriptionId}',CGI::escape(subscriptionId.to_s))
end
rawresponse=requestProcessor.delete(baseurl,@username,@password)
response=HTTPResponse.new()
if rawresponse.getCode()!=nil then
response.setHTTPResponseCode(rawresponse.getCode())
end
if rawresponse.getLocation()!=nil then
response.setLocation(rawresponse.getLocation())
end
if rawresponse.getContentType()!=nil then
response.setContentType(rawresponse.getContentType())
end
return response
end
|