def cancel_signature(self, signature_id): """ Cancel a concrete Signature @signature_id: Id of signature @return Signature data """ connection = Connection(self.token) connection.set_url(self.production, self.SIGNS_CANCEL_URL % signature_id) return connection.patch_request()
def update_branding(self, branding_id, params): """ Update a existing branding @branding_id: Id of the branding to update @params: Same params as method create_branding, see above @return: A dict with updated branding data """ parser = Parser(self.TOUCH_BRANDING_PARAMS, []) parser.validate_data(params) connection = Connection(self.token) connection.add_header('Content-Type', 'application/json') connection.set_url(self.production, self.BRANDINGS_ID_URL % branding_id) connection.add_params(params) return connection.patch_request()