mailslurp_client 11.8.10 → 11.9.1

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: f5eca84e79eeb7cb5a559aa0ebb92571fb47752d127c972fbb5d8a6aff88eb6e
4
- data.tar.gz: 7c45ad0ce22634eaab042e549f4edba04e9d73991d7731d2b6215da1b4ee0b72
3
+ metadata.gz: 5a7170ea201d4a298ba5b6b0849e258ae06e38805e56882f7b478debd341745d
4
+ data.tar.gz: 5fe4ccf57eaf5e65a1291b3c0714c094e512c6d1599f6190ad4dae787b86c845
5
5
  SHA512:
6
- metadata.gz: 5b05ad66eadbf8e2a5534381ddd139498e120e56f551630bfb0ae7a43fe24075df48fb2831c75d341f5d9cf85637827ee54f7ce607050c78fcbe77ce36f9eba7
7
- data.tar.gz: d87ae4b06cf93ba9d451cf10c49958e85946bdad1cb36babd6df380e88c904bbc9d2c4ea715839d3a506fb3c5427a81f12f4bf90d2bf38906119f07836eb2308
6
+ metadata.gz: d8e43add6138188ae58691f6c8607e2c2a91efd2308579918473d12a912ac6f34d482dd2786daa21b840880774d2fe75cec5f99583742cddc6d84fa2d5fe4442
7
+ data.tar.gz: edcc020a32184faf3452069aeb18df5be485d7ff366a007ccc85b511e0cf9dea5510d9e2da72edbecc7afc1293e5bfd45b9751ef3732396957870d51660ccfb2
@@ -104,6 +104,7 @@ require 'mailslurp_client/models/validation_message'
104
104
  require 'mailslurp_client/models/verify_email_address_options'
105
105
  require 'mailslurp_client/models/wait_for_conditions'
106
106
  require 'mailslurp_client/models/webhook_dto'
107
+ require 'mailslurp_client/models/webhook_payload'
107
108
  require 'mailslurp_client/models/webhook_projection'
108
109
  require 'mailslurp_client/models/webhook_test_request'
109
110
  require 'mailslurp_client/models/webhook_test_response'
@@ -19,6 +19,192 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
23
+ # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
24
+ # @param attachment_id [String] ID of attachment
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [DownloadAttachmentDto]
27
+ def download_attachment_as_base64_encoded(attachment_id, opts = {})
28
+ data, _status_code, _headers = download_attachment_as_base64_encoded_with_http_info(attachment_id, opts)
29
+ data
30
+ end
31
+
32
+ # Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
33
+ # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
34
+ # @param attachment_id [String] ID of attachment
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(DownloadAttachmentDto, Integer, Hash)>] DownloadAttachmentDto data, response status code and response headers
37
+ def download_attachment_as_base64_encoded_with_http_info(attachment_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_base64_encoded ...'
40
+ end
41
+ # verify the required parameter 'attachment_id' is set
42
+ if @api_client.config.client_side_validation && attachment_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.download_attachment_as_base64_encoded"
44
+ end
45
+ # resource path
46
+ local_var_path = '/attachments/{attachmentId}/base64'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:body]
61
+
62
+ # return_type
63
+ return_type = opts[:return_type] || 'DownloadAttachmentDto'
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['API_KEY']
67
+
68
+ new_options = opts.merge(
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#download_attachment_as_base64_encoded\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints.
85
+ # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
86
+ # @param attachment_id [String] ID of attachment
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [String]
89
+ def download_attachment_as_bytes(attachment_id, opts = {})
90
+ data, _status_code, _headers = download_attachment_as_bytes_with_http_info(attachment_id, opts)
91
+ data
92
+ end
93
+
94
+ # Download attachments. Get email attachment bytes. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints.
95
+ # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
96
+ # @param attachment_id [String] ID of attachment
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
99
+ def download_attachment_as_bytes_with_http_info(attachment_id, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_bytes ...'
102
+ end
103
+ # verify the required parameter 'attachment_id' is set
104
+ if @api_client.config.client_side_validation && attachment_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.download_attachment_as_bytes"
106
+ end
107
+ # resource path
108
+ local_var_path = '/attachments/{attachmentId}/bytes'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
109
+
110
+ # query parameters
111
+ query_params = opts[:query_params] || {}
112
+
113
+ # header parameters
114
+ header_params = opts[:header_params] || {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type] || 'String'
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['API_KEY']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#download_attachment_as_bytes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # Get email attachment metadata information
147
+ # Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment.
148
+ # @param attachment_id [String] ID of attachment
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [AttachmentMetaData]
151
+ def get_attachment_info(attachment_id, opts = {})
152
+ data, _status_code, _headers = get_attachment_info_with_http_info(attachment_id, opts)
153
+ data
154
+ end
155
+
156
+ # Get email attachment metadata information
157
+ # Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties &#x60;name&#x60; and &#x60;content-type&#x60; and &#x60;content-length&#x60; in bytes for a given attachment.
158
+ # @param attachment_id [String] ID of attachment
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(AttachmentMetaData, Integer, Hash)>] AttachmentMetaData data, response status code and response headers
161
+ def get_attachment_info_with_http_info(attachment_id, opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachment_info ...'
164
+ end
165
+ # verify the required parameter 'attachment_id' is set
166
+ if @api_client.config.client_side_validation && attachment_id.nil?
167
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.get_attachment_info"
168
+ end
169
+ # resource path
170
+ local_var_path = '/attachments/{attachmentId}/metadata'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
171
+
172
+ # query parameters
173
+ query_params = opts[:query_params] || {}
174
+
175
+ # header parameters
176
+ header_params = opts[:header_params] || {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
179
+
180
+ # form parameters
181
+ form_params = opts[:form_params] || {}
182
+
183
+ # http body (model)
184
+ post_body = opts[:body]
185
+
186
+ # return_type
187
+ return_type = opts[:return_type] || 'AttachmentMetaData'
188
+
189
+ # auth_names
190
+ auth_names = opts[:auth_names] || ['API_KEY']
191
+
192
+ new_options = opts.merge(
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachment_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
22
208
  # Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
23
209
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
24
210
  # @param upload_options [UploadAttachmentOptions] uploadOptions
@@ -19,7 +19,7 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete all emails
22
+ # Delete all emails in all inboxes.
23
23
  # Deletes all emails in your account. Be careful as emails cannot be recovered
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [nil]
@@ -28,7 +28,7 @@ module MailSlurpClient
28
28
  nil
29
29
  end
30
30
 
31
- # Delete all emails
31
+ # Delete all emails in all inboxes.
32
32
  # Deletes all emails in your account. Be careful as emails cannot be recovered
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  return data, status_code, headers
134
134
  end
135
135
 
136
- # Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints.
136
+ # Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string.
137
137
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
138
138
  # @param attachment_id [String] ID of attachment
139
139
  # @param email_id [String] ID of email
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  data
146
146
  end
147
147
 
148
- # Get email attachment bytes. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints.
148
+ # Get email attachment bytes. Returned as &#x60;octet-stream&#x60; with content type header. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints and convert the base 64 encoded content to a file or string.
149
149
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
150
150
  # @param attachment_id [String] ID of attachment
151
151
  # @param email_id [String] ID of email
@@ -204,7 +204,7 @@ module MailSlurpClient
204
204
  return data, status_code, headers
205
205
  end
206
206
 
207
- # Get email attachment as base64 encoded string (alternative to binary responses)
207
+ # Get email attachment as base64 encoded string alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`.
208
208
  # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
209
209
  # @param attachment_id [String] ID of attachment
210
210
  # @param email_id [String] ID of email
@@ -215,7 +215,7 @@ module MailSlurpClient
215
215
  data
216
216
  end
217
217
 
218
- # Get email attachment as base64 encoded string (alternative to binary responses)
218
+ # Get email attachment as base64 encoded string alternative to binary responses. Decode the &#x60;base64FileContents&#x60; as a &#x60;utf-8&#x60; encoded string or array of bytes depending on the &#x60;contentType&#x60;.
219
219
  # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the &#x60;downloadAttachment&#x60; method but allows some clients to get around issues with binary responses.
220
220
  # @param attachment_id [String] ID of attachment
221
221
  # @param email_id [String] ID of email
@@ -272,7 +272,7 @@ module MailSlurpClient
272
272
  return data, status_code, headers
273
273
  end
274
274
 
275
- # Forward email
275
+ # Forward email to recipients
276
276
  # Forward an existing email to new recipients.
277
277
  # @param email_id [String] ID of email
278
278
  # @param forward_email_options [ForwardEmailOptions] forwardEmailOptions
@@ -283,7 +283,7 @@ module MailSlurpClient
283
283
  nil
284
284
  end
285
285
 
286
- # Forward email
286
+ # Forward email to recipients
287
287
  # Forward an existing email to new recipients.
288
288
  # @param email_id [String] ID of email
289
289
  # @param forward_email_options [ForwardEmailOptions] forwardEmailOptions
@@ -340,7 +340,7 @@ module MailSlurpClient
340
340
  return data, status_code, headers
341
341
  end
342
342
 
343
- # Get email attachment metadata
343
+ # Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods.
344
344
  # Returns the metadata such as name and content-type for a given attachment and email.
345
345
  # @param attachment_id [String] ID of attachment
346
346
  # @param email_id [String] ID of email
@@ -351,7 +351,7 @@ module MailSlurpClient
351
351
  data
352
352
  end
353
353
 
354
- # Get email attachment metadata
354
+ # Get email attachment metadata. This is the &#x60;contentType&#x60; and &#x60;contentLength&#x60; of an attachment. To get the individual attachments use the &#x60;downloadAttachment&#x60; methods.
355
355
  # Returns the metadata such as name and content-type for a given attachment and email.
356
356
  # @param attachment_id [String] ID of attachment
357
357
  # @param email_id [String] ID of email
@@ -408,7 +408,7 @@ module MailSlurpClient
408
408
  return data, status_code, headers
409
409
  end
410
410
 
411
- # Get all email attachment metadata
411
+ # Get all email attachment metadata. Metadata includes name and attachment size.
412
412
  # Returns an array of attachment metadata such as name and content-type for a given email if present.
413
413
  # @param email_id [String] ID of email
414
414
  # @param [Hash] opts the optional parameters
@@ -418,7 +418,7 @@ module MailSlurpClient
418
418
  data
419
419
  end
420
420
 
421
- # Get all email attachment metadata
421
+ # Get all email attachment metadata. Metadata includes name and attachment size.
422
422
  # Returns an array of attachment metadata such as name and content-type for a given email if present.
423
423
  # @param email_id [String] ID of email
424
424
  # @param [Hash] opts the optional parameters
@@ -605,7 +605,7 @@ module MailSlurpClient
605
605
  return data, status_code, headers
606
606
  end
607
607
 
608
- # Get email content as HTML
608
+ # Get email content as HTML. For displaying emails in browser context.
609
609
  # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`
610
610
  # @param email_id [String] emailId
611
611
  # @param [Hash] opts the optional parameters
@@ -616,7 +616,7 @@ module MailSlurpClient
616
616
  data
617
617
  end
618
618
 
619
- # Get email content as HTML
619
+ # Get email content as HTML. For displaying emails in browser context.
620
620
  # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: &#x60;?apiKey&#x3D;xxx&#x60;
621
621
  # @param email_id [String] emailId
622
622
  # @param [Hash] opts the optional parameters
@@ -803,7 +803,7 @@ module MailSlurpClient
803
803
  return data, status_code, headers
804
804
  end
805
805
 
806
- # Get all emails
806
+ # Get all emails in all inboxes. Email API list all.
807
807
  # By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages
808
808
  # @param [Hash] opts the optional parameters
809
809
  # @option opts [Array<String>] :inbox_id Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account.
@@ -817,7 +817,7 @@ module MailSlurpClient
817
817
  data
818
818
  end
819
819
 
820
- # Get all emails
820
+ # Get all emails in all inboxes. Email API list all.
821
821
  # By default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages
822
822
  # @param [Hash] opts the optional parameters
823
823
  # @option opts [Array<String>] :inbox_id Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account.
@@ -878,7 +878,7 @@ module MailSlurpClient
878
878
  return data, status_code, headers
879
879
  end
880
880
 
881
- # Get latest email
881
+ # Get latest email in all inboxes. Most recently received.
882
882
  # Get the newest email in all inboxes or in a passed set of inbox IDs
883
883
  # @param [Hash] opts the optional parameters
884
884
  # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
@@ -888,7 +888,7 @@ module MailSlurpClient
888
888
  data
889
889
  end
890
890
 
891
- # Get latest email
891
+ # Get latest email in all inboxes. Most recently received.
892
892
  # Get the newest email in all inboxes or in a passed set of inbox IDs
893
893
  # @param [Hash] opts the optional parameters
894
894
  # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
@@ -937,7 +937,7 @@ module MailSlurpClient
937
937
  return data, status_code, headers
938
938
  end
939
939
 
940
- # Get latest email
940
+ # Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
941
941
  # Get the newest email in all inboxes or in a passed set of inbox IDs
942
942
  # @param [Hash] opts the optional parameters
943
943
  # @option opts [String] :inbox_id ID of the inbox you want to get the latest email from
@@ -947,7 +947,7 @@ module MailSlurpClient
947
947
  data
948
948
  end
949
949
 
950
- # Get latest email
950
+ # Get latest email in an inbox. Use &#x60;WaitForController&#x60; to get emails that may not have arrived yet.
951
951
  # Get the newest email in all inboxes or in a passed set of inbox IDs
952
952
  # @param [Hash] opts the optional parameters
953
953
  # @option opts [String] :inbox_id ID of the inbox you want to get the latest email from
@@ -996,7 +996,7 @@ module MailSlurpClient
996
996
  return data, status_code, headers
997
997
  end
998
998
 
999
- # Get all organization emails
999
+ # Get all organization emails. List team or shared test email accounts
1000
1000
  # By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages
1001
1001
  # @param [Hash] opts the optional parameters
1002
1002
  # @option opts [Array<String>] :inbox_id Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account.
@@ -1010,7 +1010,7 @@ module MailSlurpClient
1010
1010
  data
1011
1011
  end
1012
1012
 
1013
- # Get all organization emails
1013
+ # Get all organization emails. List team or shared test email accounts
1014
1014
  # By default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages
1015
1015
  # @param [Hash] opts the optional parameters
1016
1016
  # @option opts [Array<String>] :inbox_id Optional inbox ids to filter by. Can be repeated. By default will use all inboxes belonging to your account.
@@ -1071,7 +1071,7 @@ module MailSlurpClient
1071
1071
  return data, status_code, headers
1072
1072
  end
1073
1073
 
1074
- # Get raw email string
1074
+ # Get raw email string. Returns unparsed raw SMTP message with headers and body.
1075
1075
  # Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint
1076
1076
  # @param email_id [String] ID of email
1077
1077
  # @param [Hash] opts the optional parameters
@@ -1081,7 +1081,7 @@ module MailSlurpClient
1081
1081
  data
1082
1082
  end
1083
1083
 
1084
- # Get raw email string
1084
+ # Get raw email string. Returns unparsed raw SMTP message with headers and body.
1085
1085
  # Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint
1086
1086
  # @param email_id [String] ID of email
1087
1087
  # @param [Hash] opts the optional parameters
@@ -1133,7 +1133,7 @@ module MailSlurpClient
1133
1133
  return data, status_code, headers
1134
1134
  end
1135
1135
 
1136
- # Get raw email in JSON
1136
+ # Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
1137
1137
  # Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response
1138
1138
  # @param email_id [String] ID of email
1139
1139
  # @param [Hash] opts the optional parameters
@@ -1143,7 +1143,7 @@ module MailSlurpClient
1143
1143
  data
1144
1144
  end
1145
1145
 
1146
- # Get raw email in JSON
1146
+ # Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
1147
1147
  # Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response
1148
1148
  # @param email_id [String] ID of email
1149
1149
  # @param [Hash] opts the optional parameters
@@ -1196,7 +1196,7 @@ module MailSlurpClient
1196
1196
  end
1197
1197
 
1198
1198
  # Get unread email count
1199
- # Get number of emails unread
1199
+ # Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
1200
1200
  # @param [Hash] opts the optional parameters
1201
1201
  # @return [UnreadCount]
1202
1202
  def get_unread_email_count(opts = {})
@@ -1205,7 +1205,7 @@ module MailSlurpClient
1205
1205
  end
1206
1206
 
1207
1207
  # Get unread email count
1208
- # Get number of emails unread
1208
+ # Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
1209
1209
  # @param [Hash] opts the optional parameters
1210
1210
  # @return [Array<(UnreadCount, Integer, Hash)>] UnreadCount data, response status code and response headers
1211
1211
  def get_unread_email_count_with_http_info(opts = {})
@@ -1321,7 +1321,7 @@ module MailSlurpClient
1321
1321
  return data, status_code, headers
1322
1322
  end
1323
1323
 
1324
- # Validate email
1324
+ # Validate email HTML contents
1325
1325
  # Validate the HTML content of email if HTML is found. Considered valid if no HTML.
1326
1326
  # @param email_id [String] ID of email
1327
1327
  # @param [Hash] opts the optional parameters
@@ -1331,7 +1331,7 @@ module MailSlurpClient
1331
1331
  data
1332
1332
  end
1333
1333
 
1334
- # Validate email
1334
+ # Validate email HTML contents
1335
1335
  # Validate the HTML content of email if HTML is found. Considered valid if no HTML.
1336
1336
  # @param email_id [String] ID of email
1337
1337
  # @param [Hash] opts the optional parameters