@@ -54,7 +54,7 @@ def __init__(self,clientid, clientsecret, version='v3.0', base_uri= 'https://api
5454 self .api_client = ApiClient (base_uri )
5555 if self .needAuth :
5656 self .access_token = self .api_client .get_access_token ("client_credentials" , clientid , clientsecret ,version )
57- # self.auth_data = self.o_auth_post("client_credentials", appsid, appkey)
57+
5858 config = Configuration ()
5959 config .host = self .base_uri + '/' + self .version
6060 if api_client :
@@ -66,7 +66,7 @@ def __init__(self,clientid, clientsecret, version='v3.0', base_uri= 'https://api
6666 if self .needAuth :
6767 self .api_client .set_default_header ("Authorization" , "Bearer " + self .access_token )
6868 self .get_access_token_time = time .process_time ()
69- # self.api_client.set_default_header("Authorization", "Bearer " + self.auth_data.access_token)
69+
7070
7171 def check_access_token (self ):
7272 if self .needAuth :
@@ -869,7 +869,9 @@ def post_metadata_with_http_info(self, file, document_properties, **kwargs):
869869
870870 body_params = None
871871 if 'document_properties' in params :
872- body_params = params ['document_properties' ]
872+ # form_params['documentproperties'] = tuple(['documentproperties', self.api_client.sanitize_for_serialization( params['document_properties']), 'application/json'])
873+ form_params .append (tuple (["documentproperties" , tuple (["documentproperties" ,repr (self .api_client .sanitize_for_serialization ( params ['document_properties' ])) , "" ])]))
874+
873875 # HTTP header `Accept`
874876 header_params ['Accept' ] = self .api_client .\
875877 select_header_accept (['multipart/form-data' ])
@@ -1028,9 +1030,7 @@ def post_search(self, file, text, **kwargs):
10281030 :param str text: (required)
10291031 :param str password:
10301032 :param str sheetname:
1031- :param str path:
1032- :param str storage_name:
1033- :return: file
1033+ :return: list[TextItem]
10341034 If the method is called asynchronously,
10351035 returns the request thread.
10361036 """
@@ -1058,14 +1058,12 @@ def post_search_with_http_info(self, file, text, **kwargs):
10581058 :param str text: (required)
10591059 :param str password:
10601060 :param str sheetname:
1061- :param str path:
1062- :param str storage_name:
1063- :return: file
1061+ :return: list[TextItem]
10641062 If the method is called asynchronously,
10651063 returns the request thread.
10661064 """
10671065
1068- all_params = ['file' , 'text' , 'password' , 'sheetname' , 'path' , 'storage_name' ]
1066+ all_params = ['file' , 'text' , 'password' , 'sheetname' ]
10691067 all_params .append ('callback' )
10701068 all_params .append ('_return_http_data_only' )
10711069 all_params .append ('_preload_content' )
@@ -1099,10 +1097,7 @@ def post_search_with_http_info(self, file, text, **kwargs):
10991097 query_params .append (('password' , params ['password' ]))
11001098 if 'sheetname' in params :
11011099 query_params .append (('sheetname' , params ['sheetname' ]))
1102- if 'path' in params :
1103- query_params .append (('path' , params ['path' ]))
1104- if 'storage_name' in params :
1105- query_params .append (('storageName' , params ['storage_name' ]))
1100+
11061101
11071102 header_params = {}
11081103
@@ -1136,7 +1131,7 @@ def post_search_with_http_info(self, file, text, **kwargs):
11361131 body = body_params ,
11371132 post_params = form_params ,
11381133 files = local_var_files ,
1139- response_type = 'file ' ,
1134+ response_type = 'list[TextItem] ' ,
11401135 auth_settings = auth_settings ,
11411136 callback = params .get ('callback' ),
11421137 _return_http_data_only = params .get ('_return_http_data_only' ),
@@ -1161,8 +1156,6 @@ def post_split(self, file, format, **kwargs):
11611156 :param str password:
11621157 :param int _from:
11631158 :param int to:
1164- :param str path:
1165- :param str storage_name:
11661159 :return: FilesResult
11671160 If the method is called asynchronously,
11681161 returns the request thread.
@@ -1192,14 +1185,12 @@ def post_split_with_http_info(self, file, format, **kwargs):
11921185 :param str password:
11931186 :param int _from:
11941187 :param int to:
1195- :param str path:
1196- :param str storage_name:
11971188 :return: FilesResult
11981189 If the method is called asynchronously,
11991190 returns the request thread.
12001191 """
12011192
1202- all_params = ['file' , 'format' , 'password' , '_from' , 'to' , 'path' , 'storage_name' ]
1193+ all_params = ['file' , 'format' , 'password' , '_from' , 'to' ]
12031194 all_params .append ('callback' )
12041195 all_params .append ('_return_http_data_only' )
12051196 all_params .append ('_preload_content' )
@@ -1235,10 +1226,6 @@ def post_split_with_http_info(self, file, format, **kwargs):
12351226 query_params .append (('from' , params ['_from' ]))
12361227 if 'to' in params :
12371228 query_params .append (('to' , params ['to' ]))
1238- if 'path' in params :
1239- query_params .append (('path' , params ['path' ]))
1240- if 'storage_name' in params :
1241- query_params .append (('storageName' , params ['storage_name' ]))
12421229
12431230 header_params = {}
12441231
0 commit comments