aspose_html_cloud 19.6.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 546e783723c252bceef52e6aebe5c15a80abd3c4c87a2fc9d9b1794dc5f01809
4
- data.tar.gz: 1dd4b393b71ed0b7673ec3f0567c72ad6d06f82699cd73a44496ba128d28515e
3
+ metadata.gz: 6d83547dbe13e9c4f0dc09bccac1a10bbd46e6a25ae4d912676b042bf487d093
4
+ data.tar.gz: bd0b632f39d9c8970eb79418c52703ae02130762db8a42347177425a20a06837
5
5
  SHA512:
6
- metadata.gz: 4aa8b61bce0825826798072783524348514ce002ac5cd875447a0c97d23aaab64366885cedd7a9e484b9c8a998c18393f16479dc4894ecdf526063c940e48541
7
- data.tar.gz: eaac3edbc89deedc87c85f378e9c83211327e4b336fe286ab156bf275979e2f204d6bfb0b6dc9bcc7248c5a8a53f173d9cfb946c845191390d2cb18a38134fe8
6
+ metadata.gz: 07cfe21780c5096e395bee1b7970fa1ed34dd112d1900ae78062b1d7ce7b134e07e82913c11d7e0b157e11a6f20903353ee4350aab0bfdb5b8b1c768a1510b6f
7
+ data.tar.gz: 4efde36ed3480943a9e888f14f213edbfe3b4e1a47f4cc7c2aeea6da82b3bd844472ea3fe38d66e545d202fa5ccd30ee61182c38b33b0a1ba1b1d40d27f0567a
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="aspose_html_cloud.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="html_api.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -562,19 +562,19 @@ module AsposeHtml
562
562
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
563
563
  def post_convert_document_in_request_to_image_with_http_info(out_path, out_format, file, opts = {})
564
564
  if @api_client.config.debug
565
- @api_client.config.logger.debug "Calling API: ConversionApi.post_convert_document_in_request_to_image ..."
565
+ @api_client.config.logger.debug "Calling API: HtmlApi.post_convert_document_in_request_to_image ..."
566
566
  end
567
567
  # verify the required parameter 'out_path' is set
568
568
  if @api_client.config.client_side_validation && out_path.nil?
569
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.post_convert_document_in_request_to_image"
569
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_convert_document_in_request_to_image"
570
570
  end
571
571
  # verify the required parameter 'out_format' is set
572
572
  if @api_client.config.client_side_validation && out_format.nil?
573
- fail ArgumentError, "Missing the required parameter 'out_format' when calling ConversionApi.post_convert_document_in_request_to_image"
573
+ fail ArgumentError, "Missing the required parameter 'out_format' when calling HtmlApi.post_convert_document_in_request_to_image"
574
574
  end
575
575
  # verify the required parameter 'file' is set
576
576
  if @api_client.config.client_side_validation && file.nil?
577
- fail ArgumentError, "Missing the required parameter 'file' when calling ConversionApi.post_convert_document_in_request_to_image"
577
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_convert_document_in_request_to_image"
578
578
  end
579
579
  # resource path
580
580
  local_var_path = "/html/convert/image/{outFormat}".sub('{' + 'outFormat' + '}', out_format.to_s)
@@ -609,7 +609,7 @@ module AsposeHtml
609
609
  :body => post_body,
610
610
  :return_type => 'File')
611
611
  if @api_client.config.debug
612
- @api_client.config.logger.debug "API called: ConversionApi#post_convert_document_in_request_to_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
612
+ @api_client.config.logger.debug "API called: HtmlApi#post_convert_document_in_request_to_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
613
613
  end
614
614
  return data, status_code, headers
615
615
  end
@@ -645,15 +645,15 @@ module AsposeHtml
645
645
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
646
646
  def post_convert_document_in_request_to_pdf_with_http_info(out_path, file, opts = {})
647
647
  if @api_client.config.debug
648
- @api_client.config.logger.debug "Calling API: ConversionApi.post_convert_document_in_request_to_pdf ..."
648
+ @api_client.config.logger.debug "Calling API: HtmlApi.post_convert_document_in_request_to_pdf ..."
649
649
  end
650
650
  # verify the required parameter 'out_path' is set
651
651
  if @api_client.config.client_side_validation && out_path.nil?
652
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.post_convert_document_in_request_to_pdf"
652
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_convert_document_in_request_to_pdf"
653
653
  end
654
654
  # verify the required parameter 'file' is set
655
655
  if @api_client.config.client_side_validation && file.nil?
656
- fail ArgumentError, "Missing the required parameter 'file' when calling ConversionApi.post_convert_document_in_request_to_pdf"
656
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_convert_document_in_request_to_pdf"
657
657
  end
658
658
  # resource path
659
659
  local_var_path = "/html/convert/pdf"
@@ -689,7 +689,7 @@ module AsposeHtml
689
689
  :body => post_body,
690
690
  :return_type => 'File')
691
691
  if @api_client.config.debug
692
- @api_client.config.logger.debug "API called: ConversionApi#post_convert_document_in_request_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
692
+ @api_client.config.logger.debug "API called: HtmlApi#post_convert_document_in_request_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
693
  end
694
694
  return data, status_code, headers
695
695
  end
@@ -725,15 +725,15 @@ module AsposeHtml
725
725
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
726
726
  def post_convert_document_in_request_to_xps_with_http_info(out_path, file, opts = {})
727
727
  if @api_client.config.debug
728
- @api_client.config.logger.debug "Calling API: ConversionApi.post_convert_document_in_request_to_xps ..."
728
+ @api_client.config.logger.debug "Calling API: HtmlApi.post_convert_document_in_request_to_xps ..."
729
729
  end
730
730
  # verify the required parameter 'out_path' is set
731
731
  if @api_client.config.client_side_validation && out_path.nil?
732
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.post_convert_document_in_request_to_xps"
732
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_convert_document_in_request_to_xps"
733
733
  end
734
734
  # verify the required parameter 'file' is set
735
735
  if @api_client.config.client_side_validation && file.nil?
736
- fail ArgumentError, "Missing the required parameter 'file' when calling ConversionApi.post_convert_document_in_request_to_xps"
736
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_convert_document_in_request_to_xps"
737
737
  end
738
738
  # resource path
739
739
  local_var_path = "/html/convert/xps"
@@ -769,7 +769,7 @@ module AsposeHtml
769
769
  :body => post_body,
770
770
  :return_type => 'File')
771
771
  if @api_client.config.debug
772
- @api_client.config.logger.debug "API called: ConversionApi#post_convert_document_in_request_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
772
+ @api_client.config.logger.debug "API called: HtmlApi#post_convert_document_in_request_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
773
  end
774
774
  return data, status_code, headers
775
775
  end
@@ -813,19 +813,19 @@ module AsposeHtml
813
813
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
814
814
  def put_convert_document_to_image_with_http_info(name, out_path, out_format, opts = {})
815
815
  if @api_client.config.debug
816
- @api_client.config.logger.debug "Calling API: ConversionApi.put_convert_document_to_image ..."
816
+ @api_client.config.logger.debug "Calling API: HtmlApi.put_convert_document_to_image ..."
817
817
  end
818
818
  # verify the required parameter 'name' is set
819
819
  if @api_client.config.client_side_validation && name.nil?
820
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.put_convert_document_to_image"
820
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.put_convert_document_to_image"
821
821
  end
822
822
  # verify the required parameter 'out_path' is set
823
823
  if @api_client.config.client_side_validation && out_path.nil?
824
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.put_convert_document_to_image"
824
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.put_convert_document_to_image"
825
825
  end
826
826
  # verify the required parameter 'out_format' is set
827
827
  if @api_client.config.client_side_validation && out_format.nil?
828
- fail ArgumentError, "Missing the required parameter 'out_format' when calling ConversionApi.put_convert_document_to_image"
828
+ fail ArgumentError, "Missing the required parameter 'out_format' when calling HtmlApi.put_convert_document_to_image"
829
829
  end
830
830
  # resource path
831
831
  local_var_path = "/html/{name}/convert/image/{outFormat}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'outFormat' + '}', out_format.to_s)
@@ -862,7 +862,7 @@ module AsposeHtml
862
862
  :body => post_body,
863
863
  :return_type => 'File')
864
864
  if @api_client.config.debug
865
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_document_to_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
865
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_document_to_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
866
866
  end
867
867
  return data, status_code, headers
868
868
  end
@@ -902,15 +902,15 @@ module AsposeHtml
902
902
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
903
903
  def put_convert_document_to_pdf_with_http_info(name, out_path, opts = {})
904
904
  if @api_client.config.debug
905
- @api_client.config.logger.debug "Calling API: ConversionApi.put_convert_document_to_pdf ..."
905
+ @api_client.config.logger.debug "Calling API: HtmlApi.put_convert_document_to_pdf ..."
906
906
  end
907
907
  # verify the required parameter 'name' is set
908
908
  if @api_client.config.client_side_validation && name.nil?
909
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.put_convert_document_to_pdf"
909
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.put_convert_document_to_pdf"
910
910
  end
911
911
  # verify the required parameter 'out_path' is set
912
912
  if @api_client.config.client_side_validation && out_path.nil?
913
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.put_convert_document_to_pdf"
913
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.put_convert_document_to_pdf"
914
914
  end
915
915
  # resource path
916
916
  local_var_path = "/html/{name}/convert/pdf".sub('{' + 'name' + '}', name.to_s)
@@ -946,7 +946,7 @@ module AsposeHtml
946
946
  :body => post_body,
947
947
  :return_type => 'File')
948
948
  if @api_client.config.debug
949
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_document_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
949
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_document_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
950
950
  end
951
951
  return data, status_code, headers
952
952
  end
@@ -986,15 +986,15 @@ module AsposeHtml
986
986
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
987
987
  def put_convert_document_to_xps_with_http_info(name, out_path, opts = {})
988
988
  if @api_client.config.debug
989
- @api_client.config.logger.debug "Calling API: ConversionApi.put_convert_document_to_xps ..."
989
+ @api_client.config.logger.debug "Calling API: HtmlApi.put_convert_document_to_xps ..."
990
990
  end
991
991
  # verify the required parameter 'name' is set
992
992
  if @api_client.config.client_side_validation && name.nil?
993
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.put_convert_document_to_xps"
993
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.put_convert_document_to_xps"
994
994
  end
995
995
  # verify the required parameter 'out_path' is set
996
996
  if @api_client.config.client_side_validation && out_path.nil?
997
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.put_convert_document_to_xps"
997
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.put_convert_document_to_xps"
998
998
  end
999
999
  # resource path
1000
1000
  local_var_path = "/html/{name}/convert/xps".sub('{' + 'name' + '}', name.to_s)
@@ -1030,7 +1030,7 @@ module AsposeHtml
1030
1030
  :body => post_body,
1031
1031
  :return_type => 'File')
1032
1032
  if @api_client.config.debug
1033
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_document_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1033
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_document_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1034
1034
  end
1035
1035
  return data, status_code, headers
1036
1036
  end
@@ -1108,11 +1108,11 @@ module AsposeHtml
1108
1108
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1109
1109
  def get_convert_document_to_markdown_with_http_info(name, opts = {})
1110
1110
  if @api_client.config.debug
1111
- @api_client.config.logger.debug 'Calling API: ConversionApi.get_convert_document_to_markdown ...'
1111
+ @api_client.config.logger.debug 'Calling API: HtmlApi.get_convert_document_to_markdown ...'
1112
1112
  end
1113
1113
  # verify the required parameter 'name' is set
1114
1114
  if @api_client.config.client_side_validation && name.nil?
1115
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.get_convert_document_to_markdown"
1115
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.get_convert_document_to_markdown"
1116
1116
  end
1117
1117
  # resource path
1118
1118
  local_var_path = '/html/{name}/convert/md'.sub('{' + 'name' + '}', name.to_s)
@@ -1142,7 +1142,7 @@ module AsposeHtml
1142
1142
  :body => post_body,
1143
1143
  :return_type => 'File')
1144
1144
  if @api_client.config.debug
1145
- @api_client.config.logger.debug "API called: ConversionApi#get_convert_document_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1145
+ @api_client.config.logger.debug "API called: HtmlApi#get_convert_document_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1146
1146
  end
1147
1147
  return data, status_code, headers
1148
1148
  end
@@ -1166,15 +1166,15 @@ module AsposeHtml
1166
1166
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1167
1167
  def post_convert_document_in_request_to_markdown_with_http_info(out_path, file, opts = {})
1168
1168
  if @api_client.config.debug
1169
- @api_client.config.logger.debug 'Calling API: ConversionApi.post_convert_document_in_request_to_markdown ...'
1169
+ @api_client.config.logger.debug 'Calling API: HtmlApi.post_convert_document_in_request_to_markdown ...'
1170
1170
  end
1171
1171
  # verify the required parameter 'out_path' is set
1172
1172
  if @api_client.config.client_side_validation && out_path.nil?
1173
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.post_convert_document_in_request_to_markdown"
1173
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_convert_document_in_request_to_markdown"
1174
1174
  end
1175
1175
  # verify the required parameter 'file' is set
1176
1176
  if @api_client.config.client_side_validation && file.nil?
1177
- fail ArgumentError, "Missing the required parameter 'file' when calling ConversionApi.post_convert_document_in_request_to_markdown"
1177
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_convert_document_in_request_to_markdown"
1178
1178
  end
1179
1179
  # resource path
1180
1180
  local_var_path = '/html/convert/md'
@@ -1205,7 +1205,7 @@ module AsposeHtml
1205
1205
  :body => post_body,
1206
1206
  :return_type => 'File')
1207
1207
  if @api_client.config.debug
1208
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_document_in_request_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1208
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_document_in_request_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1209
1209
  end
1210
1210
  return data, status_code, headers
1211
1211
  end
@@ -1233,15 +1233,15 @@ module AsposeHtml
1233
1233
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1234
1234
  def put_convert_document_to_markdown_with_http_info(name, out_path, opts = {})
1235
1235
  if @api_client.config.debug
1236
- @api_client.config.logger.debug 'Calling API: ConversionApi.put_convert_document_to_markdown ...'
1236
+ @api_client.config.logger.debug 'Calling API: HtmlApi.put_convert_document_to_markdown ...'
1237
1237
  end
1238
1238
  # verify the required parameter 'name' is set
1239
1239
  if @api_client.config.client_side_validation && name.nil?
1240
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.put_convert_document_to_markdown"
1240
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.put_convert_document_to_markdown"
1241
1241
  end
1242
1242
  # verify the required parameter 'out_path' is set
1243
1243
  if @api_client.config.client_side_validation && out_path.nil?
1244
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.put_convert_document_to_markdown"
1244
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.put_convert_document_to_markdown"
1245
1245
  end
1246
1246
  # resource path
1247
1247
  local_var_path = '/html/{name}/convert/md'.sub('{' + 'name' + '}', name.to_s)
@@ -1272,7 +1272,7 @@ module AsposeHtml
1272
1272
  :body => post_body,
1273
1273
  :return_type => 'File')
1274
1274
  if @api_client.config.debug
1275
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_document_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1275
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_document_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1276
1276
  end
1277
1277
  return data, status_code, headers
1278
1278
  end
@@ -1300,11 +1300,11 @@ module AsposeHtml
1300
1300
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1301
1301
  def get_convert_markdown_to_html_with_http_info(name, opts = {})
1302
1302
  if @api_client.config.debug
1303
- @api_client.config.logger.debug 'Calling API: ConversionApi.get_convert_markdown_to_html ...'
1303
+ @api_client.config.logger.debug 'Calling API: HtmlApi.get_convert_markdown_to_html ...'
1304
1304
  end
1305
1305
  # verify the required parameter 'name' is set
1306
1306
  if @api_client.config.client_side_validation && name.nil?
1307
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.get_convert_markdown_to_html"
1307
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.get_convert_markdown_to_html"
1308
1308
  end
1309
1309
  # resource path
1310
1310
  local_var_path = '/html/{name}/import/md'.sub('{' + 'name' + '}', name.to_s)
@@ -1333,7 +1333,7 @@ module AsposeHtml
1333
1333
  :body => post_body,
1334
1334
  :return_type => 'File')
1335
1335
  if @api_client.config.debug
1336
- @api_client.config.logger.debug "API called: ConversionApi#get_convert_markdown_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1336
+ @api_client.config.logger.debug "API called: HtmlApi#get_convert_markdown_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1337
1337
  end
1338
1338
  return data, status_code, headers
1339
1339
  end
@@ -1357,15 +1357,15 @@ module AsposeHtml
1357
1357
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1358
1358
  def post_convert_markdown_in_request_to_html_with_http_info(out_path, file, opts = {})
1359
1359
  if @api_client.config.debug
1360
- @api_client.config.logger.debug 'Calling API: ConversionApi.post_convert_markdown_in_request_to_html ...'
1360
+ @api_client.config.logger.debug 'Calling API: HtmlApi.post_convert_markdown_in_request_to_html ...'
1361
1361
  end
1362
1362
  # verify the required parameter 'out_path' is set
1363
1363
  if @api_client.config.client_side_validation && out_path.nil?
1364
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.post_convert_markdown_in_request_to_html"
1364
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_convert_markdown_in_request_to_html"
1365
1365
  end
1366
1366
  # verify the required parameter 'file' is set
1367
1367
  if @api_client.config.client_side_validation && file.nil?
1368
- fail ArgumentError, "Missing the required parameter 'file' when calling ConversionApi.post_convert_markdown_in_request_to_html"
1368
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_convert_markdown_in_request_to_html"
1369
1369
  end
1370
1370
  # resource path
1371
1371
  local_var_path = '/html/import/md'
@@ -1396,7 +1396,7 @@ module AsposeHtml
1396
1396
  :body => post_body,
1397
1397
  :return_type => 'File')
1398
1398
  if @api_client.config.debug
1399
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_markdown_in_request_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1399
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_markdown_in_request_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1400
1400
  end
1401
1401
  return data, status_code, headers
1402
1402
  end
@@ -1422,15 +1422,15 @@ module AsposeHtml
1422
1422
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1423
1423
  def put_convert_markdown_to_html_with_http_info(name, out_path, opts = {})
1424
1424
  if @api_client.config.debug
1425
- @api_client.config.logger.debug 'Calling API: ConversionApi.put_convert_markdown_to_html ...'
1425
+ @api_client.config.logger.debug 'Calling API: HtmlApi.put_convert_markdown_to_html ...'
1426
1426
  end
1427
1427
  # verify the required parameter 'name' is set
1428
1428
  if @api_client.config.client_side_validation && name.nil?
1429
- fail ArgumentError, "Missing the required parameter 'name' when calling ConversionApi.put_convert_markdown_to_html"
1429
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.put_convert_markdown_to_html"
1430
1430
  end
1431
1431
  # verify the required parameter 'out_path' is set
1432
1432
  if @api_client.config.client_side_validation && out_path.nil?
1433
- fail ArgumentError, "Missing the required parameter 'out_path' when calling ConversionApi.put_convert_markdown_to_html"
1433
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.put_convert_markdown_to_html"
1434
1434
  end
1435
1435
  # resource path
1436
1436
  local_var_path = '/html/{name}/import/md'.sub('{' + 'name' + '}', name.to_s)
@@ -1460,7 +1460,7 @@ module AsposeHtml
1460
1460
  :body => post_body,
1461
1461
  :return_type => 'File')
1462
1462
  if @api_client.config.debug
1463
- @api_client.config.logger.debug "API called: ConversionApi#put_convert_markdown_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1463
+ @api_client.config.logger.debug "API called: HtmlApi#put_convert_markdown_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1464
1464
  end
1465
1465
  return data, status_code, headers
1466
1466
  end
@@ -1484,11 +1484,11 @@ module AsposeHtml
1484
1484
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1485
1485
  def get_document_by_url_with_http_info(source_url)
1486
1486
  if @api_client.config.debug
1487
- @api_client.config.logger.debug 'Calling API: DocumentApi.get_document_by_url ...'
1487
+ @api_client.config.logger.debug 'Calling API: `HtmlApi.get_document_by_url ...'
1488
1488
  end
1489
1489
  # verify the required parameter 'source_url' is set
1490
1490
  if @api_client.config.client_side_validation && source_url.nil?
1491
- fail ArgumentError, "Missing the required parameter 'source_url' when calling DocumentApi.get_document_by_url"
1491
+ fail ArgumentError, "Missing the required parameter 'source_url' when calling HtmlApi.get_document_by_url"
1492
1492
  end
1493
1493
  # resource path
1494
1494
  local_var_path = '/html/download'
@@ -1516,7 +1516,7 @@ module AsposeHtml
1516
1516
  :body => post_body,
1517
1517
  :return_type => 'File')
1518
1518
  if @api_client.config.debug
1519
- @api_client.config.logger.debug "API called: DocumentApi#get_document_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1519
+ @api_client.config.logger.debug "API called: HtmlApi#get_document_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1520
1520
  end
1521
1521
  return data, status_code, headers
1522
1522
  end
@@ -1626,19 +1626,19 @@ module AsposeHtml
1626
1626
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1627
1627
  def get_document_fragment_by_x_path_by_url_with_http_info(source_url, x_path, out_format)
1628
1628
  if @api_client.config.debug
1629
- @api_client.config.logger.debug "Calling API: DocumentApi.get_document_fragment_by_x_path_by_url ..."
1629
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_document_fragment_by_x_path_by_url ..."
1630
1630
  end
1631
1631
  # verify the required parameter 'source_url' is set
1632
1632
  if @api_client.config.client_side_validation && source_url.nil?
1633
- fail ArgumentError, "Missing the required parameter 'source_url' when calling DocumentApi.get_document_fragment_by_x_path_by_url"
1633
+ fail ArgumentError, "Missing the required parameter 'source_url' when calling HtmlApi.get_document_fragment_by_x_path_by_url"
1634
1634
  end
1635
1635
  # verify the required parameter 'x_path' is set
1636
1636
  if @api_client.config.client_side_validation && x_path.nil?
1637
- fail ArgumentError, "Missing the required parameter 'x_path' when calling DocumentApi.get_document_fragment_by_x_path_by_url"
1637
+ fail ArgumentError, "Missing the required parameter 'x_path' when calling HtmlApi.get_document_fragment_by_x_path_by_url"
1638
1638
  end
1639
1639
  # verify the required parameter 'out_format' is set
1640
1640
  if @api_client.config.client_side_validation && out_format.nil?
1641
- fail ArgumentError, "Missing the required parameter 'out_format' when calling DocumentApi.get_document_fragment_by_x_path_by_url"
1641
+ fail ArgumentError, "Missing the required parameter 'out_format' when calling HtmlApi.get_document_fragment_by_x_path_by_url"
1642
1642
  end
1643
1643
  # resource path
1644
1644
  local_var_path = "/html/fragments/{outFormat}".sub('{' + 'outFormat' + '}', out_format.to_s)
@@ -1667,7 +1667,7 @@ module AsposeHtml
1667
1667
  :body => post_body,
1668
1668
  :return_type => 'File')
1669
1669
  if @api_client.config.debug
1670
- @api_client.config.logger.debug "API called: DocumentApi#get_document_fragment_by_x_path_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1670
+ @api_client.config.logger.debug "API called: HtmlApi#get_document_fragment_by_x_path_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1671
1671
  end
1672
1672
  return data, status_code, headers
1673
1673
  end
@@ -1697,19 +1697,19 @@ module AsposeHtml
1697
1697
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1698
1698
  def get_document_fragments_by_css_selector_with_http_info(name, selector, out_format, opts = {})
1699
1699
  if @api_client.config.debug
1700
- @api_client.config.logger.debug "Calling API: DocumentApi.get_document_fragments_by_css_selector ..."
1700
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_document_fragments_by_css_selector ..."
1701
1701
  end
1702
1702
  # verify the required parameter 'name' is set
1703
1703
  if @api_client.config.client_side_validation && name.nil?
1704
- fail ArgumentError, "Missing the required parameter 'name' when calling DocumentApi.get_document_fragments_by_css_selector"
1704
+ fail ArgumentError, "Missing the required parameter 'name' when calling HtmlApi.get_document_fragments_by_css_selector"
1705
1705
  end
1706
1706
  # verify the required parameter 'selector' is set
1707
1707
  if @api_client.config.client_side_validation && selector.nil?
1708
- fail ArgumentError, "Missing the required parameter 'selector' when calling DocumentApi.get_document_fragments_by_css_selector"
1708
+ fail ArgumentError, "Missing the required parameter 'selector' when calling HtmlApi.get_document_fragments_by_css_selector"
1709
1709
  end
1710
1710
  # verify the required parameter 'out_format' is set
1711
1711
  if @api_client.config.client_side_validation && out_format.nil?
1712
- fail ArgumentError, "Missing the required parameter 'out_format' when calling DocumentApi.get_document_fragments_by_css_selector"
1712
+ fail ArgumentError, "Missing the required parameter 'out_format' when calling HtmlApi.get_document_fragments_by_css_selector"
1713
1713
  end
1714
1714
  # resource path
1715
1715
  local_var_path = "/html/{name}/fragments/css/{outFormat}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'outFormat' + '}', out_format.to_s)
@@ -1739,7 +1739,7 @@ module AsposeHtml
1739
1739
  :body => post_body,
1740
1740
  :return_type => 'File')
1741
1741
  if @api_client.config.debug
1742
- @api_client.config.logger.debug "API called: DocumentApi#get_document_fragments_by_css_selector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1742
+ @api_client.config.logger.debug "API called: HtmlApi#get_document_fragments_by_css_selector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1743
1743
  end
1744
1744
  return data, status_code, headers
1745
1745
  end
@@ -1765,19 +1765,19 @@ module AsposeHtml
1765
1765
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1766
1766
  def get_document_fragments_by_css_selector_by_url_with_http_info(source_url, selector, out_format, opts = {})
1767
1767
  if @api_client.config.debug
1768
- @api_client.config.logger.debug "Calling API: DocumentApi.get_document_fragments_by_css_selector_by_url ..."
1768
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_document_fragments_by_css_selector_by_url ..."
1769
1769
  end
1770
1770
  # verify the required parameter 'source_url' is set
1771
1771
  if @api_client.config.client_side_validation && source_url.nil?
1772
- fail ArgumentError, "Missing the required parameter 'source_url' when calling DocumentApi.get_document_fragments_by_css_selector_by_url"
1772
+ fail ArgumentError, "Missing the required parameter 'source_url' when calling HtmlApi.get_document_fragments_by_css_selector_by_url"
1773
1773
  end
1774
1774
  # verify the required parameter 'selector' is set
1775
1775
  if @api_client.config.client_side_validation && selector.nil?
1776
- fail ArgumentError, "Missing the required parameter 'selector' when calling DocumentApi.get_document_fragments_by_css_selector_by_url"
1776
+ fail ArgumentError, "Missing the required parameter 'selector' when calling HtmlApi.get_document_fragments_by_css_selector_by_url"
1777
1777
  end
1778
1778
  # verify the required parameter 'out_format' is set
1779
1779
  if @api_client.config.client_side_validation && out_format.nil?
1780
- fail ArgumentError, "Missing the required parameter 'out_format' when calling DocumentApi.get_document_fragments_by_css_selector_by_url"
1780
+ fail ArgumentError, "Missing the required parameter 'out_format' when calling HtmlApi.get_document_fragments_by_css_selector_by_url"
1781
1781
  end
1782
1782
  # resource path
1783
1783
  local_var_path = "/html/fragments/css/{outFormat}".sub('{' + 'outFormat' + '}', out_format.to_s)
@@ -1806,7 +1806,7 @@ module AsposeHtml
1806
1806
  :body => post_body,
1807
1807
  :return_type => 'File')
1808
1808
  if @api_client.config.debug
1809
- @api_client.config.logger.debug "API called: DocumentApi#get_document_fragments_by_css_selector_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1809
+ @api_client.config.logger.debug "API called: HtmlApi#get_document_fragments_by_css_selector_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1810
1810
  end
1811
1811
  return data, status_code, headers
1812
1812
  end
@@ -1886,11 +1886,11 @@ module AsposeHtml
1886
1886
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1887
1887
  def get_document_images_by_url_with_http_info(source_url)
1888
1888
  if @api_client.config.debug
1889
- @api_client.config.logger.debug "Calling API: DocumentApi.get_document_images_by_url ..."
1889
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_document_images_by_url ..."
1890
1890
  end
1891
1891
  # verify the required parameter 'source_url' is set
1892
1892
  if @api_client.config.client_side_validation && source_url.nil?
1893
- fail ArgumentError, "Missing the required parameter 'source_url' when calling DocumentApi.get_document_images_by_url"
1893
+ fail ArgumentError, "Missing the required parameter 'source_url' when calling HtmlApi.get_document_images_by_url"
1894
1894
  end
1895
1895
  # resource path
1896
1896
  local_var_path = "/html/images/all"
@@ -1918,11 +1918,123 @@ module AsposeHtml
1918
1918
  :body => post_body,
1919
1919
  :return_type => 'File')
1920
1920
  if @api_client.config.debug
1921
- @api_client.config.logger.debug "API called: DocumentApi#get_document_images_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1921
+ @api_client.config.logger.debug "API called: HtmlApi#get_document_images_by_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1922
1922
  end
1923
1923
  return data, status_code, headers
1924
1924
  end
1925
1925
 
1926
+ ################################################################################
1927
+ # SEO Api
1928
+ ################################################################################
1929
+
1930
+ # Page analysis and return of SEO warnings in json format.
1931
+ #
1932
+ # @param addr Source page URL.
1933
+ # @return [Hash] {file: data, status: _status_code, headers: _headers}
1934
+ def get_seo_warning(addr)
1935
+ data, _status_code, _headers = get_seo_warning_with_http_info(addr)
1936
+ return {file: data, status: _status_code, headers: _headers}
1937
+ end
1938
+
1939
+ # Page analysis and return of SEO warnings in json format.
1940
+ #
1941
+ # @param addr Source page URL.
1942
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1943
+ def get_seo_warning_with_http_info(addr)
1944
+ if @api_client.config.debug
1945
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_seo_warning ..."
1946
+ end
1947
+ # verify the required parameter 'addr' is set
1948
+ if @api_client.config.client_side_validation && addr.nil?
1949
+ fail ArgumentError, "Missing the required parameter 'addr' when calling HtmlApi.get_seo_warning"
1950
+ end
1951
+ # resource path
1952
+ local_var_path = "/html/seo"
1953
+
1954
+ # query parameters
1955
+ query_params = {}
1956
+ query_params[:'addr'] = addr
1957
+
1958
+ # header parameters
1959
+ header_params = {}
1960
+ # HTTP header 'Accept' (if needed)
1961
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1962
+ # HTTP header 'Content-Type'
1963
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1964
+
1965
+ # form parameters
1966
+ form_params = {}
1967
+
1968
+ # http body (model)
1969
+ post_body = nil
1970
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1971
+ :header_params => header_params,
1972
+ :query_params => query_params,
1973
+ :form_params => form_params,
1974
+ :body => post_body,
1975
+ :return_type => 'File')
1976
+ if @api_client.config.debug
1977
+ @api_client.config.logger.debug "API called: HtmlApi#get_seo_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1978
+ end
1979
+ return data, status_code, headers
1980
+ end
1981
+
1982
+ # Checks the markup validity of Web documents in HTML, XHTML, etc., and return result in json format.
1983
+ #
1984
+ # @param url Source page URL.
1985
+ # @return [Hash] {file: data, status: _status_code, headers: _headers}
1986
+ def get_html_warning(url)
1987
+ data, _status_code, _headers = get_html_warning_with_http_info(url)
1988
+ return {file: data, status: _status_code, headers: _headers}
1989
+ end
1990
+
1991
+ # Checks the markup validity of Web documents in HTML, XHTML, etc., and return result in json format.
1992
+ #
1993
+ # @param url Source page URL.
1994
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1995
+ def get_html_warning_with_http_info(url)
1996
+ if @api_client.config.debug
1997
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_html_warning ..."
1998
+ end
1999
+ # verify the required parameter 'url' is set
2000
+ if @api_client.config.client_side_validation && url.nil?
2001
+ fail ArgumentError, "Missing the required parameter 'url' when calling HtmlApi.get_html_warning"
2002
+ end
2003
+ # resource path
2004
+ local_var_path = "/html/validator"
2005
+
2006
+ # query parameters
2007
+ query_params = {}
2008
+ query_params[:'url'] = url
2009
+
2010
+ # header parameters
2011
+ header_params = {}
2012
+ # HTTP header 'Accept' (if needed)
2013
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2014
+ # HTTP header 'Content-Type'
2015
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2016
+
2017
+ # form parameters
2018
+ form_params = {}
2019
+
2020
+ # http body (model)
2021
+ post_body = nil
2022
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2023
+ :header_params => header_params,
2024
+ :query_params => query_params,
2025
+ :form_params => form_params,
2026
+ :body => post_body,
2027
+ :return_type => 'File')
2028
+ if @api_client.config.debug
2029
+ @api_client.config.logger.debug "API called: HtmlApi#get_html_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2030
+ end
2031
+ return data, status_code, headers
2032
+ end
2033
+
2034
+ ################################################################################
2035
+ # TemplateMerge Api
2036
+ ################################################################################
2037
+
1926
2038
  # Populate HTML document template with data located as a file in the storage.
1927
2039
  #
1928
2040
  # @param template_name Template document name. Template document is HTML or zipped HTML.
@@ -1948,15 +2060,15 @@ module AsposeHtml
1948
2060
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1949
2061
  def get_merge_html_template_with_http_info(template_name, data_path, opts = {})
1950
2062
  if @api_client.config.debug
1951
- @api_client.config.logger.debug "Calling API: TemplateMergeApi.get_merge_html_template ..."
2063
+ @api_client.config.logger.debug "Calling API: HtmlApi.get_merge_html_template ..."
1952
2064
  end
1953
2065
  # verify the required parameter 'template_name' is set
1954
2066
  if @api_client.config.client_side_validation && template_name.nil?
1955
- fail ArgumentError, "Missing the required parameter 'template_name' when calling TemplateMergeApi.get_merge_html_template"
2067
+ fail ArgumentError, "Missing the required parameter 'template_name' when calling HtmlApi.get_merge_html_template"
1956
2068
  end
1957
2069
  # verify the required parameter 'data_path' is set
1958
2070
  if @api_client.config.client_side_validation && data_path.nil?
1959
- fail ArgumentError, "Missing the required parameter 'data_path' when calling TemplateMergeApi.get_merge_html_template"
2071
+ fail ArgumentError, "Missing the required parameter 'data_path' when calling HtmlApi.get_merge_html_template"
1960
2072
  end
1961
2073
  # resource path
1962
2074
  local_var_path = "/html/{templateName}/merge".sub('{' + 'templateName' + '}', template_name.to_s)
@@ -1987,7 +2099,7 @@ module AsposeHtml
1987
2099
  :body => post_body,
1988
2100
  :return_type => 'File')
1989
2101
  if @api_client.config.debug
1990
- @api_client.config.logger.debug "API called: TemplateMergeApi#get_merge_html_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2102
+ @api_client.config.logger.debug "API called: HtmlApi#get_merge_html_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1991
2103
  end
1992
2104
  return data, status_code, headers
1993
2105
  end
@@ -2019,19 +2131,19 @@ module AsposeHtml
2019
2131
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
2020
2132
  def post_merge_html_template_with_http_info(template_name, out_path, file, opts = {})
2021
2133
  if @api_client.config.debug
2022
- @api_client.config.logger.debug "Calling API: TemplateMergeApi.post_merge_html_template ..."
2134
+ @api_client.config.logger.debug "Calling API: HtmlApi.post_merge_html_template ..."
2023
2135
  end
2024
2136
  # verify the required parameter 'template_name' is set
2025
2137
  if @api_client.config.client_side_validation && template_name.nil?
2026
- fail ArgumentError, "Missing the required parameter 'template_name' when calling TemplateMergeApi.post_merge_html_template"
2138
+ fail ArgumentError, "Missing the required parameter 'template_name' when calling HtmlApi.post_merge_html_template"
2027
2139
  end
2028
2140
  # verify the required parameter 'out_path' is set
2029
2141
  if @api_client.config.client_side_validation && out_path.nil?
2030
- fail ArgumentError, "Missing the required parameter 'out_path' when calling TemplateMergeApi.post_merge_html_template"
2142
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling HtmlApi.post_merge_html_template"
2031
2143
  end
2032
2144
  # verify the required parameter 'file' is set
2033
2145
  if @api_client.config.client_side_validation && file.nil?
2034
- fail ArgumentError, "Missing the required parameter 'file' when calling TemplateMergeApi.post_merge_html_template"
2146
+ fail ArgumentError, "Missing the required parameter 'file' when calling HtmlApi.post_merge_html_template"
2035
2147
  end
2036
2148
  # resource path
2037
2149
  local_var_path = "/html/{templateName}/merge".sub('{' + 'templateName' + '}', template_name.to_s)
@@ -2064,7 +2176,7 @@ module AsposeHtml
2064
2176
  :body => post_body,
2065
2177
  :return_type => 'File')
2066
2178
  if @api_client.config.debug
2067
- @api_client.config.logger.debug "API called: TemplateMergeApi#post_merge_html_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2179
+ @api_client.config.logger.debug "API called: HtmlApi#post_merge_html_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2068
2180
  end
2069
2181
  return data, status_code, headers
2070
2182
  end
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="storage_api.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="api_client.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -54,7 +54,9 @@ module AsposeHtml
54
54
  @default_headers = {
55
55
  'Content-Type' => "application/json",
56
56
  'User-Agent' => @user_agent,
57
- 'Authorization' => "Bearer #{@config.access_token}"
57
+ 'Authorization' => "Bearer #{@config.access_token}",
58
+ 'x-aspose-client' => "aspose.html-cloud ruby sdk",
59
+ 'x-aspose-client-version' => "20.8.0"
58
60
  }
59
61
  end
60
62
 
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="api_error.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="configuration.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="base_model.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="disc_usage.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="error.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="error_details.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="file_version.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="file_versions.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="files_list.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="files_upload_result.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="object_exist.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="storage_exist.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="storage_file.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="version.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="html_api_spec.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -87,7 +87,7 @@ describe 'Test html_api' do
87
87
  expect(answer[:status]).to eql(200)
88
88
 
89
89
  # Save to test dir
90
- save_to_test_dir(answer[:file], "Convert_get_html.jpeg")
90
+ save_to_test_dir(answer[:file], "Convert_get_html_jpeg.zip")
91
91
  end
92
92
 
93
93
  it "Convert html to png" do
@@ -99,7 +99,7 @@ describe 'Test html_api' do
99
99
  expect(answer[:status]).to eql(200)
100
100
 
101
101
  # Save to test dir
102
- save_to_test_dir(answer[:file], "Convert_get_html.png")
102
+ save_to_test_dir(answer[:file], "Convert_get_html_png.zip")
103
103
  end
104
104
 
105
105
  it "Convert html to bmp" do
@@ -111,7 +111,7 @@ describe 'Test html_api' do
111
111
  expect(answer[:status]).to eql(200)
112
112
 
113
113
  # Save to test dir
114
- save_to_test_dir(answer[:file], "Convert_get_html.bmp")
114
+ save_to_test_dir(answer[:file], "Convert_get_html_bmp.zip")
115
115
  end
116
116
 
117
117
  it "Convert html to tiff" do
@@ -123,7 +123,7 @@ describe 'Test html_api' do
123
123
  expect(answer[:status]).to eql(200)
124
124
 
125
125
  # Save to test dir
126
- save_to_test_dir(answer[:file], "Convert_get_html.tiff")
126
+ save_to_test_dir(answer[:file], "Convert_get_html_tiff.zip")
127
127
  end
128
128
 
129
129
  it "Convert html to gif" do
@@ -135,7 +135,7 @@ describe 'Test html_api' do
135
135
  expect(answer[:status]).to eql(200)
136
136
 
137
137
  # Save to test dir
138
- save_to_test_dir(answer[:file], "Convert_get_html.gif")
138
+ save_to_test_dir(answer[:file], "Convert_get_html_gif.zip")
139
139
  end
140
140
  end
141
141
 
@@ -365,7 +365,7 @@ describe 'Test html_api' do
365
365
  expect(answer[:status]).to eql(200)
366
366
 
367
367
  # Save to test dir
368
- save_to_test_dir(answer[:file], "Convert_get_url.jpeg")
368
+ save_to_test_dir(answer[:file], "Convert_get_url_jpeg.zip")
369
369
  end
370
370
 
371
371
  it "Convert url to png" do
@@ -377,7 +377,7 @@ describe 'Test html_api' do
377
377
  expect(answer[:status]).to eql(200)
378
378
 
379
379
  # Save to test dir
380
- save_to_test_dir(answer[:file], "Convert_get_url.png")
380
+ save_to_test_dir(answer[:file], "Convert_get_url_png.zip")
381
381
  end
382
382
 
383
383
  it "Convert url to bmp" do
@@ -389,7 +389,7 @@ describe 'Test html_api' do
389
389
  expect(answer[:status]).to eql(200)
390
390
 
391
391
  # Save to test dir
392
- save_to_test_dir(answer[:file], "Convert_get_url.bmp")
392
+ save_to_test_dir(answer[:file], "Convert_get_url_bmp.zip")
393
393
  end
394
394
 
395
395
  it "Convert url to tiff" do
@@ -401,7 +401,7 @@ describe 'Test html_api' do
401
401
  expect(answer[:status]).to eql(200)
402
402
 
403
403
  # Save to test dir
404
- save_to_test_dir(answer[:file], "Convert_get_url.tiff")
404
+ save_to_test_dir(answer[:file], "Convert_get_url_tiff.zip")
405
405
  end
406
406
 
407
407
  it "Convert url to gif" do
@@ -413,7 +413,7 @@ describe 'Test html_api' do
413
413
  expect(answer[:status]).to eql(200)
414
414
 
415
415
  # Save to test dir
416
- save_to_test_dir(answer[:file], "Convert_get_url.gif")
416
+ save_to_test_dir(answer[:file], "Convert_get_url_gif.zip")
417
417
  end
418
418
  end
419
419
 
@@ -787,7 +787,7 @@ describe 'Test html_api' do
787
787
  }
788
788
 
789
789
  it "Upload and convert html to jpeg" do
790
- name = "postHtmlToJpegInReq.jpeg"
790
+ name = "postHtmlToJpegInReq.zip"
791
791
  out_path = "HtmlTestDoc/" + name
792
792
  out_format = "jpeg"
793
793
 
@@ -804,7 +804,7 @@ describe 'Test html_api' do
804
804
  end
805
805
 
806
806
  it "Upload and convert html to png" do
807
- name = "postHtmlToPngInReq.png"
807
+ name = "postHtmlToPngInReq.zip"
808
808
  out_path = "HtmlTestDoc/" + name
809
809
  out_format = "png"
810
810
 
@@ -821,7 +821,7 @@ describe 'Test html_api' do
821
821
  end
822
822
 
823
823
  it "Upload and convert html to bmp" do
824
- name = "postHtmlToBmpInReq.bmp"
824
+ name = "postHtmlToBmpInReq.zip"
825
825
  out_path = "HtmlTestDoc/" + name
826
826
  out_format = "bmp"
827
827
 
@@ -838,7 +838,7 @@ describe 'Test html_api' do
838
838
  end
839
839
 
840
840
  it "Upload and convert html to tiff" do
841
- name = "postHtmlToTiffInReq.tiff"
841
+ name = "postHtmlToTiffInReq.zip"
842
842
  out_path = "HtmlTestDoc/" + name
843
843
  out_format = "tiff"
844
844
 
@@ -855,7 +855,7 @@ describe 'Test html_api' do
855
855
  end
856
856
 
857
857
  it "Upload and convert html to gif" do
858
- name = "postHtmlToGifInReq.gif"
858
+ name = "postHtmlToGifInReq.zip"
859
859
  out_path = "HtmlTestDoc/" + name
860
860
  out_format = "gif"
861
861
 
@@ -1366,7 +1366,7 @@ describe 'Test html_api' do
1366
1366
  }
1367
1367
 
1368
1368
  it "Convert html to jpeg in storage" do
1369
- result_name = "putHtmlToJpeg.jpeg"
1369
+ result_name = "putHtmlToJpeg.zip"
1370
1370
  out_path = "HtmlTestDoc/" + result_name
1371
1371
  out_format = "jpeg"
1372
1372
 
@@ -1383,7 +1383,7 @@ describe 'Test html_api' do
1383
1383
  end
1384
1384
 
1385
1385
  it "Convert html to png in storage" do
1386
- result_name = "putHtmlToPng.png"
1386
+ result_name = "putHtmlToPng.zip"
1387
1387
  out_path = "HtmlTestDoc/" + result_name
1388
1388
  out_format = "png"
1389
1389
 
@@ -1400,7 +1400,7 @@ describe 'Test html_api' do
1400
1400
  end
1401
1401
 
1402
1402
  it "Convert html to bmp in storage" do
1403
- result_name = "putHtmlToBmp.bmp"
1403
+ result_name = "putHtmlToBmp.zip"
1404
1404
  out_path = "HtmlTestDoc/" + result_name
1405
1405
  out_format = "bmp"
1406
1406
 
@@ -1417,7 +1417,7 @@ describe 'Test html_api' do
1417
1417
  end
1418
1418
 
1419
1419
  it "Convert html to tiff in storage" do
1420
- result_name = "putHtmlToTiff.tiff"
1420
+ result_name = "putHtmlToTiff.zip"
1421
1421
  out_path = "HtmlTestDoc/" + result_name
1422
1422
  out_format = "tiff"
1423
1423
 
@@ -1434,7 +1434,7 @@ describe 'Test html_api' do
1434
1434
  end
1435
1435
 
1436
1436
  it "Convert html to gif in storage" do
1437
- result_name = "putHtmlToGif.gif"
1437
+ result_name = "putHtmlToGif.zip"
1438
1438
  out_path = "HtmlTestDoc/" + result_name
1439
1439
  out_format = "gif"
1440
1440
 
@@ -2363,6 +2363,54 @@ describe 'Test html_api' do
2363
2363
  end
2364
2364
  end
2365
2365
 
2366
+ #################################################
2367
+ # SEO API
2368
+ #################################################
2369
+
2370
+ # unit tests for get_seo_warning
2371
+ # Page analysis and return of SEO warnings in json format.
2372
+ #
2373
+ # @param addr Source page URL.
2374
+ # @return [Hash] {file: data, status: _status_code, headers: _headers}
2375
+ describe 'get_seo_warning test' do
2376
+ it "Get seo warning" do
2377
+
2378
+ addr = "https://edition.cnn.com/"
2379
+ answer = @instance.get_seo_warning(addr)
2380
+
2381
+ expect(answer).to be_an_instance_of Hash
2382
+ expect(answer[:file]).to be_an_instance_of File
2383
+ expect(answer[:status]).to eql(200)
2384
+
2385
+ # Save to test dir
2386
+ save_to_test_dir(answer[:file], "Get_seo_warning.json")
2387
+ end
2388
+ end
2389
+
2390
+ # unit tests for get_html_warning
2391
+ # Checks the markup validity of Web documents in HTML, XHTML, etc., and return result in json format.
2392
+ #
2393
+ # @param url Source page URL.
2394
+ # @return [Hash] {file: data, status: _status_code, headers: _headers}
2395
+ describe 'get_html_warning test' do
2396
+ it "Get html warning" do
2397
+
2398
+ url = "https://edition.cnn.com/"
2399
+ answer = @instance.get_html_warning(url)
2400
+
2401
+ expect(answer).to be_an_instance_of Hash
2402
+ expect(answer[:file]).to be_an_instance_of File
2403
+ expect(answer[:status]).to eql(200)
2404
+
2405
+ # Save to test dir
2406
+ save_to_test_dir(answer[:file], "Get_html_warning.json")
2407
+ end
2408
+ end
2409
+
2410
+ #################################################
2411
+ # TemplateMerge API
2412
+ #################################################
2413
+
2366
2414
  # unit tests for get_merge_html_template
2367
2415
  # Populate HTML document template with data located as a file in the storage.
2368
2416
  #
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="model_spec.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -4,7 +4,7 @@
4
4
  --------------------------------------------------------------------------------------------------------------------
5
5
  <copyright company="Aspose" file="storage_api_spec.rb">
6
6
  </copyright>
7
- Copyright (c) 2019 Aspose.HTML for Cloud
7
+ Copyright (c) 2020 Aspose.HTML for Cloud
8
8
  <summary>
9
9
  Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
  of this software and associated documentation files (the "Software"), to deal
@@ -3,7 +3,7 @@
3
3
  --------------------------------------------------------------------------------------------------------------------
4
4
  <copyright company="Aspose" file="spec_helper.rb">
5
5
  </copyright>
6
- Copyright (c) 2019 Aspose.HTML for Cloud
6
+ Copyright (c) 2020 Aspose.HTML for Cloud
7
7
  <summary>
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
@@ -30,11 +30,10 @@
30
30
  require 'aspose_html_cloud'
31
31
 
32
32
  CONFIG = {
33
- "basePath": "https://api-qa.aspose.cloud/v3.0",
34
- # "basePath": "http://localhost:5000/v3.0",
35
- "authPath": "https://api-qa.aspose.cloud/connect/token",
36
- "apiKey": "html.cloud",
37
- "appSID": "html.cloud",
33
+ "basePath": "https://api.aspose.cloud/v3.0",
34
+ "authPath": "https://api.aspose.cloud/connect/token",
35
+ "apiKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
36
+ "appSID": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
38
37
  "debug": true
39
38
  }
40
39
  # from storage api
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_html_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.6.0
4
+ version: 20.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Makogon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,42 +34,42 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 2.1.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 2.1.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.6'
60
57
  - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: 3.6.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.6'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.6'
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 3.6.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.6'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ files:
218
218
  - spec/api/model_spec.rb
219
219
  - spec/api/storage_api_spec.rb
220
220
  - spec/spec_helper.rb
221
- homepage: https://www.aspose.com
221
+ homepage: https://github.com/aspose-html-cloud/aspose-html-cloud-ruby
222
222
  licenses:
223
223
  - MIT
224
224
  metadata: {}
@@ -237,8 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  - !ruby/object:Gem::Version
238
238
  version: '0'
239
239
  requirements: []
240
- rubyforge_project:
241
- rubygems_version: 2.7.6.2
240
+ rubygems_version: 3.0.3
242
241
  signing_key:
243
242
  specification_version: 4
244
243
  summary: A ruby wrapper for the Aspose.HTML Cloud SDK API.