def edit_document(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).writer_request_handler()
def convert_document(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler if self.isDocument or self.isURL: return ZOIAPIHandler.get_instance(self).writer_request_handler()
def create_document(self): if not self.isCreateTemplate: try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).writer_request_handler()
def watermark_document(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler if self.isDocument or self.isURL: return ZOIAPIHandler.get_instance(self).writer_request_handler() else: return "No Supported Document Uploaded to edit!"
def delete_show_session(self): if self.session_delete_url is not None: self.api_end_point = self.session_delete_url else: self.api_end_point = ZOIConfigUtil.get_show_api_base_url() + "session/" + self.session_id try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).delete_request_handler()
def delete_sheet_document(self): if self.document_delete_url is not None: self.api_end_point = self.document_delete_url else: self.api_end_point = ZOIConfigUtil.get_sheet_api_base_url() + "spreadsheet/" + self.document_id try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).delete_request_handler()
def delete_document(self, service_id=None): if self.document_delete_url is not None: self.api_end_point = self.document_delete_url else: if service_id == 1: self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "document/" + self.document_id elif service_id == 2: self.api_end_point = ZOIConfigUtil.get_sheet_api_base_url() + "spreadsheet/" + self.document_id elif service_id == 3: self.api_end_point = ZOIConfigUtil.get_show_api_base_url() + "presentation/" + self.document_id else: return try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).delete_request_handler()
def convert_presentation(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).sheet_show_request_handler()
def preview_spreadsheet(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).sheet_show_request_handler()
def merge_and_download(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).writer_request_handler()
def create_template(self): try: from controllers.Handler import ZOIAPIHandler except ImportError: from .Handler import ZOIAPIHandler return ZOIAPIHandler.get_instance(self).writer_request_handler()