mailslurp_client 11.1.0 → 11.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/email_controller_api.rb +14 -20
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ab99cf6e32e9b983aba0a4af539dc48d6ec35dfed539ef5c4c32c859bc8d09
|
4
|
+
data.tar.gz: 22c979df15e3c0c7fae1ec784b872104d8f72cc7e83094640ecd49adcf5c03ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512ea12d39289c7404a0ef94b0a34d81969c05efd2c7a1c986be0c1aeb86960dffe6f7d3edaf6db6c796fb36bd12dd70900df1b78307b77d099a58b702b8f95d
|
7
|
+
data.tar.gz: 8103ac2eaae0f5281d7f625578676ce8505c3c392266ba6ca6dcb19375c4cba192200a1a0489e91fa703c65bb81c430dbecc51d373c7cc407993da75dcaf5980
|
@@ -673,21 +673,21 @@ module MailSlurpClient
|
|
673
673
|
# Parse and return text from an email, stripping HTML and decoding encoded characters
|
674
674
|
# Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors
|
675
675
|
# @param email_id [String] ID of email to perform HTML query on
|
676
|
-
# @param html_selector [String] HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
|
677
676
|
# @param [Hash] opts the optional parameters
|
677
|
+
# @option opts [String] :html_selector HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
|
678
678
|
# @return [EmailTextLinesResult]
|
679
|
-
def get_email_html_query(email_id,
|
680
|
-
data, _status_code, _headers = get_email_html_query_with_http_info(email_id,
|
679
|
+
def get_email_html_query(email_id, opts = {})
|
680
|
+
data, _status_code, _headers = get_email_html_query_with_http_info(email_id, opts)
|
681
681
|
data
|
682
682
|
end
|
683
683
|
|
684
684
|
# Parse and return text from an email, stripping HTML and decoding encoded characters
|
685
685
|
# Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors
|
686
686
|
# @param email_id [String] ID of email to perform HTML query on
|
687
|
-
# @param html_selector [String] HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
|
688
687
|
# @param [Hash] opts the optional parameters
|
688
|
+
# @option opts [String] :html_selector HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
|
689
689
|
# @return [Array<(EmailTextLinesResult, Integer, Hash)>] EmailTextLinesResult data, response status code and response headers
|
690
|
-
def get_email_html_query_with_http_info(email_id,
|
690
|
+
def get_email_html_query_with_http_info(email_id, opts = {})
|
691
691
|
if @api_client.config.debugging
|
692
692
|
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_html_query ...'
|
693
693
|
end
|
@@ -695,15 +695,12 @@ module MailSlurpClient
|
|
695
695
|
if @api_client.config.client_side_validation && email_id.nil?
|
696
696
|
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_html_query"
|
697
697
|
end
|
698
|
-
# verify the required parameter 'html_selector' is set
|
699
|
-
if @api_client.config.client_side_validation && html_selector.nil?
|
700
|
-
fail ArgumentError, "Missing the required parameter 'html_selector' when calling EmailControllerApi.get_email_html_query"
|
701
|
-
end
|
702
698
|
# resource path
|
703
|
-
local_var_path = '/emails/{emailId}/html-query'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
699
|
+
local_var_path = '/emails/{emailId}/html-query'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
704
700
|
|
705
701
|
# query parameters
|
706
702
|
query_params = opts[:query_params] || {}
|
703
|
+
query_params[:'htmlSelector'] = opts[:'html_selector'] if !opts[:'html_selector'].nil?
|
707
704
|
|
708
705
|
# header parameters
|
709
706
|
header_params = opts[:header_params] || {}
|
@@ -740,38 +737,35 @@ module MailSlurpClient
|
|
740
737
|
|
741
738
|
# Parse and return text from an email, stripping HTML and decoding encoded characters
|
742
739
|
# Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
|
743
|
-
# @param decode_html_entities [Boolean] Decode HTML entities
|
744
740
|
# @param email_id [String] ID of email to fetch text for
|
745
741
|
# @param [Hash] opts the optional parameters
|
742
|
+
# @option opts [Boolean] :decode_html_entities Decode HTML entities
|
746
743
|
# @return [EmailTextLinesResult]
|
747
|
-
def get_email_text_lines(
|
748
|
-
data, _status_code, _headers = get_email_text_lines_with_http_info(
|
744
|
+
def get_email_text_lines(email_id, opts = {})
|
745
|
+
data, _status_code, _headers = get_email_text_lines_with_http_info(email_id, opts)
|
749
746
|
data
|
750
747
|
end
|
751
748
|
|
752
749
|
# Parse and return text from an email, stripping HTML and decoding encoded characters
|
753
750
|
# Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
|
754
|
-
# @param decode_html_entities [Boolean] Decode HTML entities
|
755
751
|
# @param email_id [String] ID of email to fetch text for
|
756
752
|
# @param [Hash] opts the optional parameters
|
753
|
+
# @option opts [Boolean] :decode_html_entities Decode HTML entities
|
757
754
|
# @return [Array<(EmailTextLinesResult, Integer, Hash)>] EmailTextLinesResult data, response status code and response headers
|
758
|
-
def get_email_text_lines_with_http_info(
|
755
|
+
def get_email_text_lines_with_http_info(email_id, opts = {})
|
759
756
|
if @api_client.config.debugging
|
760
757
|
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_text_lines ...'
|
761
758
|
end
|
762
|
-
# verify the required parameter 'decode_html_entities' is set
|
763
|
-
if @api_client.config.client_side_validation && decode_html_entities.nil?
|
764
|
-
fail ArgumentError, "Missing the required parameter 'decode_html_entities' when calling EmailControllerApi.get_email_text_lines"
|
765
|
-
end
|
766
759
|
# verify the required parameter 'email_id' is set
|
767
760
|
if @api_client.config.client_side_validation && email_id.nil?
|
768
761
|
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_text_lines"
|
769
762
|
end
|
770
763
|
# resource path
|
771
|
-
local_var_path = '/emails/{emailId}/text'.sub('{' + '
|
764
|
+
local_var_path = '/emails/{emailId}/text'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
772
765
|
|
773
766
|
# query parameters
|
774
767
|
query_params = opts[:query_params] || {}
|
768
|
+
query_params[:'decodeHtmlEntities'] = opts[:'decode_html_entities'] if !opts[:'decode_html_entities'].nil?
|
775
769
|
|
776
770
|
# header parameters
|
777
771
|
header_params = opts[:header_params] || {}
|