@@ -440,6 +440,132 @@ def cells_delete_worksheet_rows_with_http_info(self, name, sheet_name, startrow,
440440 _request_timeout = params .get ('_request_timeout' ),
441441 collection_formats = collection_formats )
442442
443+ def cells_get_cell_html_string (self , name , sheet_name , cell_name , ** kwargs ):
444+ """
445+ Read cell data by cell's name.
446+ This method makes a synchronous HTTP request by default. To make an
447+ asynchronous HTTP request, please define a `callback` function
448+ to be invoked when receiving the response.
449+ >>> def callback_function(response):
450+ >>> pprint(response)
451+ >>>
452+ >>> thread = api.cells_get_cell_html_string(name, sheet_name, cell_name, callback=callback_function)
453+
454+ :param callback function: The callback function
455+ for asynchronous request. (optional)
456+ :param str name: Document name. (required)
457+ :param str sheet_name: Worksheet name. (required)
458+ :param str cell_name: The cell's name. (required)
459+ :param str folder: Document's folder.
460+ :param str storage: storage name.
461+ :return: object
462+ If the method is called asynchronously,
463+ returns the request thread.
464+ """
465+ kwargs ['_return_http_data_only' ] = True
466+ if kwargs .get ('callback' ):
467+ return self .cells_get_cell_html_string_with_http_info (name , sheet_name , cell_name , ** kwargs )
468+ else :
469+ (data ) = self .cells_get_cell_html_string_with_http_info (name , sheet_name , cell_name , ** kwargs )
470+ return data
471+
472+ def cells_get_cell_html_string_with_http_info (self , name , sheet_name , cell_name , ** kwargs ):
473+ """
474+ Read cell data by cell's name.
475+ This method makes a synchronous HTTP request by default. To make an
476+ asynchronous HTTP request, please define a `callback` function
477+ to be invoked when receiving the response.
478+ >>> def callback_function(response):
479+ >>> pprint(response)
480+ >>>
481+ >>> thread = api.cells_get_cell_html_string_with_http_info(name, sheet_name, cell_name, callback=callback_function)
482+
483+ :param callback function: The callback function
484+ for asynchronous request. (optional)
485+ :param str name: Document name. (required)
486+ :param str sheet_name: Worksheet name. (required)
487+ :param str cell_name: The cell's name. (required)
488+ :param str folder: Document's folder.
489+ :param str storage: storage name.
490+ :return: object
491+ If the method is called asynchronously,
492+ returns the request thread.
493+ """
494+
495+ all_params = ['name' , 'sheet_name' , 'cell_name' , 'folder' , 'storage' ]
496+ all_params .append ('callback' )
497+ all_params .append ('_return_http_data_only' )
498+ all_params .append ('_preload_content' )
499+ all_params .append ('_request_timeout' )
500+
501+ params = locals ()
502+ for key , val in iteritems (params ['kwargs' ]):
503+ if key not in all_params :
504+ raise TypeError (
505+ "Got an unexpected keyword argument '%s'"
506+ " to method cells_get_cell_html_string" % key
507+ )
508+ params [key ] = val
509+ del params ['kwargs' ]
510+ # verify the required parameter 'name' is set
511+ if ('name' not in params ) or (params ['name' ] is None ):
512+ raise ValueError ("Missing the required parameter `name` when calling `cells_get_cell_html_string`" )
513+ # verify the required parameter 'sheet_name' is set
514+ if ('sheet_name' not in params ) or (params ['sheet_name' ] is None ):
515+ raise ValueError ("Missing the required parameter `sheet_name` when calling `cells_get_cell_html_string`" )
516+ # verify the required parameter 'cell_name' is set
517+ if ('cell_name' not in params ) or (params ['cell_name' ] is None ):
518+ raise ValueError ("Missing the required parameter `cell_name` when calling `cells_get_cell_html_string`" )
519+
520+
521+ collection_formats = {}
522+
523+ path_params = {}
524+ if 'name' in params :
525+ path_params ['name' ] = params ['name' ]
526+ if 'sheet_name' in params :
527+ path_params ['sheetName' ] = params ['sheet_name' ]
528+ if 'cell_name' in params :
529+ path_params ['cellName' ] = params ['cell_name' ]
530+
531+ query_params = []
532+ if 'folder' in params :
533+ query_params .append (('folder' , params ['folder' ]))
534+ if 'storage' in params :
535+ query_params .append (('storage' , params ['storage' ]))
536+
537+ header_params = {}
538+
539+ form_params = []
540+ local_var_files = {}
541+
542+ body_params = None
543+ # HTTP header `Accept`
544+ header_params ['Accept' ] = self .api_client .\
545+ select_header_accept (['application/json' ])
546+
547+ # HTTP header `Content-Type`
548+ header_params ['Content-Type' ] = self .api_client .\
549+ select_header_content_type (['application/json' ])
550+
551+ # Authentication setting
552+ auth_settings = []
553+
554+ return self .api_client .call_api ('/cells/{name}/worksheets/{sheetName}/cells/{cellName}/htmlstring' , 'GET' ,
555+ path_params ,
556+ query_params ,
557+ header_params ,
558+ body = body_params ,
559+ post_params = form_params ,
560+ files = local_var_files ,
561+ response_type = 'object' ,
562+ auth_settings = auth_settings ,
563+ callback = params .get ('callback' ),
564+ _return_http_data_only = params .get ('_return_http_data_only' ),
565+ _preload_content = params .get ('_preload_content' , True ),
566+ _request_timeout = params .get ('_request_timeout' ),
567+ collection_formats = collection_formats )
568+
443569 def cells_get_worksheet_cell (self , name , sheet_name , cell_or_method_name , ** kwargs ):
444570 """
445571 Read cell data by cell's name.
0 commit comments