def cancelReceiptNotifications(self,subscriptionId): """ cancelReceiptNotifications : stop the subscription to MMS message notifications Parameters: subscriptionId : subscriptionId of a previously created deliveryNotification subscription """ baseurl=self.endpoints.getCancelMMSReceiptSubscriptionEndpoint() requestProcessor=JSONRequest() if '{subscriptionId}' in baseurl: baseurl=baseurl.replace('{subscriptionId}',str(subscriptionId)) rawresponse=requestProcessor.delete(baseurl,self.username,self.password) response=HTTPResponse() if rawresponse.getCode() is not None: response.setHTTPResponseCode(rawresponse.getCode()) if rawresponse.getLocation() is not None: response.setLocation(rawresponse.getLocation()) if rawresponse.getContentType() is not None: response.setContentType(rawresponse.getContentType()) return response
def cancelDeliveryNotifications(self,subscriptionId): """ cancelDeliveryNotifications : stop the subscription to delivery notifications Parameters: subscriptionId : a previously created subscriptionId from the subscribeToDeliveryNotification function """ baseurl=self.endpoints.getCancelMMSDeliverySubscriptionEndpoint() requestProcessor=JSONRequest() if '{subscriptionId}' in baseurl: baseurl=baseurl.replace('{subscriptionId}',str(subscriptionId)) rawresponse=requestProcessor.delete(baseurl,self.username,self.password) response=HTTPResponse() if rawresponse.getCode() is not None: response.setHTTPResponseCode(rawresponse.getCode()) if rawresponse.getLocation() is not None: response.setLocation(rawresponse.getLocation()) if rawresponse.getContentType() is not None: response.setContentType(rawresponse.getContentType()) return response
def cancelReceiptNotifications(self, subscriptionId): """ cancelReceiptNotifications : stop the subscription to message notifications Parameters: subscriptionId : subscriptionId of a previously created receiptNotification subscription """ baseurl = self.endpoints.getCancelSMSReceiptSubscriptionEndpoint() requestProcessor = JSONRequest() if '{subscriptionId}' in baseurl: baseurl = baseurl.replace('{subscriptionId}', str(subscriptionId)) rawresponse = requestProcessor.delete(baseurl, self.username, self.password) response = HTTPResponse() if rawresponse.getCode() is not None: response.setHTTPResponseCode(rawresponse.getCode()) if rawresponse.getLocation() is not None: response.setLocation(rawresponse.getLocation()) if rawresponse.getContentType() is not None: response.setContentType(rawresponse.getContentType()) return response