mailslurp_client 15.5.3 → 15.5.4
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 +68 -6
- data/lib/mailslurp_client/api/inbox_controller_api.rb +70 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +186 -0
- data/lib/mailslurp_client/models/alias_projection.rb +13 -13
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_preview_urls.rb +225 -0
- data/lib/mailslurp_client/models/email_projection.rb +26 -26
- data/lib/mailslurp_client/models/sent_email_projection.rb +31 -31
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdd3cf5b042e3e62fb0f4c97bfaf235e6952ca2b8e076b3783ca6ef3b6b557f3
|
4
|
+
data.tar.gz: e19054700264023870ad0a45ac2c254811c4d450c7ad582eda8db54934ded4b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8971fff18c7497750a135f3c315b3951b25eee5979d4e23a3c4c1277f5d8c6b4239afd05da23e8c0285d28b84189d81aeab6f258ac458b40f9a18d1ee52c689c
|
7
|
+
data.tar.gz: 8376bc7f193e765acfb97c07867a0ba7738ef927cd7dce6ddf768f84729589c5a397e5ff4a80b739e101823c2519291a6c83dd876cb446093b06559df447607b
|
@@ -1051,6 +1051,68 @@ module MailSlurpClient
|
|
1051
1051
|
return data, status_code, headers
|
1052
1052
|
end
|
1053
1053
|
|
1054
|
+
# Get email URLs for viewing in browser or downloading
|
1055
|
+
# Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser.
|
1056
|
+
# @param email_id [String]
|
1057
|
+
# @param [Hash] opts the optional parameters
|
1058
|
+
# @return [EmailPreviewUrls]
|
1059
|
+
def get_email_preview_ur_ls(email_id, opts = {})
|
1060
|
+
data, _status_code, _headers = get_email_preview_ur_ls_with_http_info(email_id, opts)
|
1061
|
+
data
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Get email URLs for viewing in browser or downloading
|
1065
|
+
# Get a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser.
|
1066
|
+
# @param email_id [String]
|
1067
|
+
# @param [Hash] opts the optional parameters
|
1068
|
+
# @return [Array<(EmailPreviewUrls, Integer, Hash)>] EmailPreviewUrls data, response status code and response headers
|
1069
|
+
def get_email_preview_ur_ls_with_http_info(email_id, opts = {})
|
1070
|
+
if @api_client.config.debugging
|
1071
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_preview_ur_ls ...'
|
1072
|
+
end
|
1073
|
+
# verify the required parameter 'email_id' is set
|
1074
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
1075
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_preview_ur_ls"
|
1076
|
+
end
|
1077
|
+
# resource path
|
1078
|
+
local_var_path = '/emails/{emailId}/urls'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
1079
|
+
|
1080
|
+
# query parameters
|
1081
|
+
query_params = opts[:query_params] || {}
|
1082
|
+
|
1083
|
+
# header parameters
|
1084
|
+
header_params = opts[:header_params] || {}
|
1085
|
+
# HTTP header 'Accept' (if needed)
|
1086
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1087
|
+
|
1088
|
+
# form parameters
|
1089
|
+
form_params = opts[:form_params] || {}
|
1090
|
+
|
1091
|
+
# http body (model)
|
1092
|
+
post_body = opts[:body]
|
1093
|
+
|
1094
|
+
# return_type
|
1095
|
+
return_type = opts[:return_type] || 'EmailPreviewUrls'
|
1096
|
+
|
1097
|
+
# auth_names
|
1098
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1099
|
+
|
1100
|
+
new_options = opts.merge(
|
1101
|
+
:header_params => header_params,
|
1102
|
+
:query_params => query_params,
|
1103
|
+
:form_params => form_params,
|
1104
|
+
:body => post_body,
|
1105
|
+
:auth_names => auth_names,
|
1106
|
+
:return_type => return_type
|
1107
|
+
)
|
1108
|
+
|
1109
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1110
|
+
if @api_client.config.debugging
|
1111
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#get_email_preview_ur_ls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1112
|
+
end
|
1113
|
+
return data, status_code, headers
|
1114
|
+
end
|
1115
|
+
|
1054
1116
|
# Parse and return text from an email, stripping HTML and decoding encoded characters
|
1055
1117
|
# Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
|
1056
1118
|
# @param email_id [String] ID of email to fetch text for
|
@@ -1335,8 +1397,8 @@ module MailSlurpClient
|
|
1335
1397
|
# @param inbox_id [String] ID of the inbox you want to get the latest email from
|
1336
1398
|
# @param [Hash] opts the optional parameters
|
1337
1399
|
# @return [Email]
|
1338
|
-
def
|
1339
|
-
data, _status_code, _headers =
|
1400
|
+
def get_latest_email_in_inbox1(inbox_id, opts = {})
|
1401
|
+
data, _status_code, _headers = get_latest_email_in_inbox1_with_http_info(inbox_id, opts)
|
1340
1402
|
data
|
1341
1403
|
end
|
1342
1404
|
|
@@ -1345,13 +1407,13 @@ module MailSlurpClient
|
|
1345
1407
|
# @param inbox_id [String] ID of the inbox you want to get the latest email from
|
1346
1408
|
# @param [Hash] opts the optional parameters
|
1347
1409
|
# @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
|
1348
|
-
def
|
1410
|
+
def get_latest_email_in_inbox1_with_http_info(inbox_id, opts = {})
|
1349
1411
|
if @api_client.config.debugging
|
1350
|
-
@api_client.config.logger.debug 'Calling API: EmailControllerApi.
|
1412
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_latest_email_in_inbox1 ...'
|
1351
1413
|
end
|
1352
1414
|
# verify the required parameter 'inbox_id' is set
|
1353
1415
|
if @api_client.config.client_side_validation && inbox_id.nil?
|
1354
|
-
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling EmailControllerApi.
|
1416
|
+
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling EmailControllerApi.get_latest_email_in_inbox1"
|
1355
1417
|
end
|
1356
1418
|
# resource path
|
1357
1419
|
local_var_path = '/emails/latestIn'
|
@@ -1388,7 +1450,7 @@ module MailSlurpClient
|
|
1388
1450
|
|
1389
1451
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1390
1452
|
if @api_client.config.debugging
|
1391
|
-
@api_client.config.logger.debug "API called: EmailControllerApi#
|
1453
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#get_latest_email_in_inbox1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1392
1454
|
end
|
1393
1455
|
return data, status_code, headers
|
1394
1456
|
end
|
@@ -1370,6 +1370,76 @@ module MailSlurpClient
|
|
1370
1370
|
return data, status_code, headers
|
1371
1371
|
end
|
1372
1372
|
|
1373
|
+
# Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
|
1374
|
+
# Get the newest email in an inbox or wait for one to arrive
|
1375
|
+
# @param inbox_id [String] ID of the inbox you want to get the latest email from
|
1376
|
+
# @param timeout_millis [Integer] Timeout milliseconds to wait for latest email
|
1377
|
+
# @param [Hash] opts the optional parameters
|
1378
|
+
# @return [Email]
|
1379
|
+
def get_latest_email_in_inbox(inbox_id, timeout_millis, opts = {})
|
1380
|
+
data, _status_code, _headers = get_latest_email_in_inbox_with_http_info(inbox_id, timeout_millis, opts)
|
1381
|
+
data
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
|
1385
|
+
# Get the newest email in an inbox or wait for one to arrive
|
1386
|
+
# @param inbox_id [String] ID of the inbox you want to get the latest email from
|
1387
|
+
# @param timeout_millis [Integer] Timeout milliseconds to wait for latest email
|
1388
|
+
# @param [Hash] opts the optional parameters
|
1389
|
+
# @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
|
1390
|
+
def get_latest_email_in_inbox_with_http_info(inbox_id, timeout_millis, opts = {})
|
1391
|
+
if @api_client.config.debugging
|
1392
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_latest_email_in_inbox ...'
|
1393
|
+
end
|
1394
|
+
# verify the required parameter 'inbox_id' is set
|
1395
|
+
if @api_client.config.client_side_validation && inbox_id.nil?
|
1396
|
+
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_latest_email_in_inbox"
|
1397
|
+
end
|
1398
|
+
# verify the required parameter 'timeout_millis' is set
|
1399
|
+
if @api_client.config.client_side_validation && timeout_millis.nil?
|
1400
|
+
fail ArgumentError, "Missing the required parameter 'timeout_millis' when calling InboxControllerApi.get_latest_email_in_inbox"
|
1401
|
+
end
|
1402
|
+
# resource path
|
1403
|
+
local_var_path = '/inboxes/getLatestEmail'
|
1404
|
+
|
1405
|
+
# query parameters
|
1406
|
+
query_params = opts[:query_params] || {}
|
1407
|
+
query_params[:'inboxId'] = inbox_id
|
1408
|
+
query_params[:'timeoutMillis'] = timeout_millis
|
1409
|
+
|
1410
|
+
# header parameters
|
1411
|
+
header_params = opts[:header_params] || {}
|
1412
|
+
# HTTP header 'Accept' (if needed)
|
1413
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1414
|
+
|
1415
|
+
# form parameters
|
1416
|
+
form_params = opts[:form_params] || {}
|
1417
|
+
|
1418
|
+
# http body (model)
|
1419
|
+
post_body = opts[:body]
|
1420
|
+
|
1421
|
+
# return_type
|
1422
|
+
return_type = opts[:return_type] || 'Email'
|
1423
|
+
|
1424
|
+
# auth_names
|
1425
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1426
|
+
|
1427
|
+
new_options = opts.merge(
|
1428
|
+
:header_params => header_params,
|
1429
|
+
:query_params => query_params,
|
1430
|
+
:form_params => form_params,
|
1431
|
+
:body => post_body,
|
1432
|
+
:auth_names => auth_names,
|
1433
|
+
:return_type => return_type
|
1434
|
+
)
|
1435
|
+
|
1436
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1437
|
+
if @api_client.config.debugging
|
1438
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_latest_email_in_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1439
|
+
end
|
1440
|
+
return data, status_code, headers
|
1441
|
+
end
|
1442
|
+
|
1373
1443
|
# List Organization Inboxes Paginated
|
1374
1444
|
# List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
|
1375
1445
|
# @param [Hash] opts the optional parameters
|
@@ -205,6 +205,130 @@ module MailSlurpClient
|
|
205
205
|
return data, status_code, headers
|
206
206
|
end
|
207
207
|
|
208
|
+
# Get raw sent email string. Returns unparsed raw SMTP message with headers and body.
|
209
|
+
# Returns a raw, unparsed, and unprocessed sent 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 getRawSentEmailJson endpoint
|
210
|
+
# @param email_id [String] ID of email
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @return [String]
|
213
|
+
def get_raw_sent_email_contents(email_id, opts = {})
|
214
|
+
data, _status_code, _headers = get_raw_sent_email_contents_with_http_info(email_id, opts)
|
215
|
+
data
|
216
|
+
end
|
217
|
+
|
218
|
+
# Get raw sent email string. Returns unparsed raw SMTP message with headers and body.
|
219
|
+
# Returns a raw, unparsed, and unprocessed sent 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 getRawSentEmailJson endpoint
|
220
|
+
# @param email_id [String] ID of email
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
223
|
+
def get_raw_sent_email_contents_with_http_info(email_id, opts = {})
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_raw_sent_email_contents ...'
|
226
|
+
end
|
227
|
+
# verify the required parameter 'email_id' is set
|
228
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
229
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SentEmailsControllerApi.get_raw_sent_email_contents"
|
230
|
+
end
|
231
|
+
# resource path
|
232
|
+
local_var_path = '/sent/{emailId}/raw'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
233
|
+
|
234
|
+
# query parameters
|
235
|
+
query_params = opts[:query_params] || {}
|
236
|
+
|
237
|
+
# header parameters
|
238
|
+
header_params = opts[:header_params] || {}
|
239
|
+
# HTTP header 'Accept' (if needed)
|
240
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
241
|
+
|
242
|
+
# form parameters
|
243
|
+
form_params = opts[:form_params] || {}
|
244
|
+
|
245
|
+
# http body (model)
|
246
|
+
post_body = opts[:body]
|
247
|
+
|
248
|
+
# return_type
|
249
|
+
return_type = opts[:return_type] || 'String'
|
250
|
+
|
251
|
+
# auth_names
|
252
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
253
|
+
|
254
|
+
new_options = opts.merge(
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => return_type
|
261
|
+
)
|
262
|
+
|
263
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: SentEmailsControllerApi#get_raw_sent_email_contents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
|
+
end
|
267
|
+
return data, status_code, headers
|
268
|
+
end
|
269
|
+
|
270
|
+
# Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format.
|
271
|
+
# Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
|
272
|
+
# @param email_id [String] ID of email
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @return [RawEmailJson]
|
275
|
+
def get_raw_sent_email_json(email_id, opts = {})
|
276
|
+
data, _status_code, _headers = get_raw_sent_email_json_with_http_info(email_id, opts)
|
277
|
+
data
|
278
|
+
end
|
279
|
+
|
280
|
+
# Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format.
|
281
|
+
# Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
|
282
|
+
# @param email_id [String] ID of email
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(RawEmailJson, Integer, Hash)>] RawEmailJson data, response status code and response headers
|
285
|
+
def get_raw_sent_email_json_with_http_info(email_id, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_raw_sent_email_json ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'email_id' is set
|
290
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling SentEmailsControllerApi.get_raw_sent_email_json"
|
292
|
+
end
|
293
|
+
# resource path
|
294
|
+
local_var_path = '/sent/{emailId}/raw/json'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
295
|
+
|
296
|
+
# query parameters
|
297
|
+
query_params = opts[:query_params] || {}
|
298
|
+
|
299
|
+
# header parameters
|
300
|
+
header_params = opts[:header_params] || {}
|
301
|
+
# HTTP header 'Accept' (if needed)
|
302
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
303
|
+
|
304
|
+
# form parameters
|
305
|
+
form_params = opts[:form_params] || {}
|
306
|
+
|
307
|
+
# http body (model)
|
308
|
+
post_body = opts[:body]
|
309
|
+
|
310
|
+
# return_type
|
311
|
+
return_type = opts[:return_type] || 'RawEmailJson'
|
312
|
+
|
313
|
+
# auth_names
|
314
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
315
|
+
|
316
|
+
new_options = opts.merge(
|
317
|
+
:header_params => header_params,
|
318
|
+
:query_params => query_params,
|
319
|
+
:form_params => form_params,
|
320
|
+
:body => post_body,
|
321
|
+
:auth_names => auth_names,
|
322
|
+
:return_type => return_type
|
323
|
+
)
|
324
|
+
|
325
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug "API called: SentEmailsControllerApi#get_raw_sent_email_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
328
|
+
end
|
329
|
+
return data, status_code, headers
|
330
|
+
end
|
331
|
+
|
208
332
|
# Get sent email receipt
|
209
333
|
# @param id [String]
|
210
334
|
# @param [Hash] opts the optional parameters
|
@@ -325,6 +449,68 @@ module MailSlurpClient
|
|
325
449
|
return data, status_code, headers
|
326
450
|
end
|
327
451
|
|
452
|
+
# Get sent email URL for viewing in browser or downloading
|
453
|
+
# Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
|
454
|
+
# @param id [String]
|
455
|
+
# @param [Hash] opts the optional parameters
|
456
|
+
# @return [EmailPreviewUrls]
|
457
|
+
def get_sent_email_preview_ur_ls(id, opts = {})
|
458
|
+
data, _status_code, _headers = get_sent_email_preview_ur_ls_with_http_info(id, opts)
|
459
|
+
data
|
460
|
+
end
|
461
|
+
|
462
|
+
# Get sent email URL for viewing in browser or downloading
|
463
|
+
# Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
|
464
|
+
# @param id [String]
|
465
|
+
# @param [Hash] opts the optional parameters
|
466
|
+
# @return [Array<(EmailPreviewUrls, Integer, Hash)>] EmailPreviewUrls data, response status code and response headers
|
467
|
+
def get_sent_email_preview_ur_ls_with_http_info(id, opts = {})
|
468
|
+
if @api_client.config.debugging
|
469
|
+
@api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_email_preview_ur_ls ...'
|
470
|
+
end
|
471
|
+
# verify the required parameter 'id' is set
|
472
|
+
if @api_client.config.client_side_validation && id.nil?
|
473
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SentEmailsControllerApi.get_sent_email_preview_ur_ls"
|
474
|
+
end
|
475
|
+
# resource path
|
476
|
+
local_var_path = '/sent/{id}/urls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
477
|
+
|
478
|
+
# query parameters
|
479
|
+
query_params = opts[:query_params] || {}
|
480
|
+
|
481
|
+
# header parameters
|
482
|
+
header_params = opts[:header_params] || {}
|
483
|
+
# HTTP header 'Accept' (if needed)
|
484
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
485
|
+
|
486
|
+
# form parameters
|
487
|
+
form_params = opts[:form_params] || {}
|
488
|
+
|
489
|
+
# http body (model)
|
490
|
+
post_body = opts[:body]
|
491
|
+
|
492
|
+
# return_type
|
493
|
+
return_type = opts[:return_type] || 'EmailPreviewUrls'
|
494
|
+
|
495
|
+
# auth_names
|
496
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
497
|
+
|
498
|
+
new_options = opts.merge(
|
499
|
+
:header_params => header_params,
|
500
|
+
:query_params => query_params,
|
501
|
+
:form_params => form_params,
|
502
|
+
:body => post_body,
|
503
|
+
:auth_names => auth_names,
|
504
|
+
:return_type => return_type
|
505
|
+
)
|
506
|
+
|
507
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
508
|
+
if @api_client.config.debugging
|
509
|
+
@api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_email_preview_ur_ls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
510
|
+
end
|
511
|
+
return data, status_code, headers
|
512
|
+
end
|
513
|
+
|
328
514
|
# Get all tracking pixels for a sent email in paginated form
|
329
515
|
# @param id [String]
|
330
516
|
# @param [Hash] opts the optional parameters
|
@@ -27,10 +27,10 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
|
-
attr_accessor :updated_at
|
31
|
-
|
32
30
|
attr_accessor :use_threads
|
33
31
|
|
32
|
+
attr_accessor :updated_at
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
@@ -40,8 +40,8 @@ module MailSlurpClient
|
|
40
40
|
:'email_address' => :'emailAddress',
|
41
41
|
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
|
-
:'
|
44
|
-
:'
|
43
|
+
:'use_threads' => :'useThreads',
|
44
|
+
:'updated_at' => :'updatedAt'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -54,8 +54,8 @@ module MailSlurpClient
|
|
54
54
|
:'email_address' => :'String',
|
55
55
|
:'inbox_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
|
-
:'
|
58
|
-
:'
|
57
|
+
:'use_threads' => :'Boolean',
|
58
|
+
:'updated_at' => :'DateTime'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -104,13 +104,13 @@ module MailSlurpClient
|
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'updated_at')
|
108
|
-
self.updated_at = attributes[:'updated_at']
|
109
|
-
end
|
110
|
-
|
111
107
|
if attributes.key?(:'use_threads')
|
112
108
|
self.use_threads = attributes[:'use_threads']
|
113
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'updated_at')
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -167,8 +167,8 @@ module MailSlurpClient
|
|
167
167
|
email_address == o.email_address &&
|
168
168
|
inbox_id == o.inbox_id &&
|
169
169
|
created_at == o.created_at &&
|
170
|
-
|
171
|
-
|
170
|
+
use_threads == o.use_threads &&
|
171
|
+
updated_at == o.updated_at
|
172
172
|
end
|
173
173
|
|
174
174
|
# @see the `==` method
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[name, id, user_id, email_address, inbox_id, created_at,
|
183
|
+
[name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -24,11 +24,11 @@ module MailSlurpClient
|
|
24
24
|
|
25
25
|
attr_accessor :user_id
|
26
26
|
|
27
|
+
attr_accessor :created_at
|
28
|
+
|
27
29
|
# Attachment ID
|
28
30
|
attr_accessor :attachment_id
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :updated_at
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -38,8 +38,8 @@ module MailSlurpClient
|
|
38
38
|
:'content_length' => :'contentLength',
|
39
39
|
:'content_type' => :'contentType',
|
40
40
|
:'user_id' => :'userId',
|
41
|
-
:'attachment_id' => :'attachmentId',
|
42
41
|
:'created_at' => :'createdAt',
|
42
|
+
:'attachment_id' => :'attachmentId',
|
43
43
|
:'updated_at' => :'updatedAt'
|
44
44
|
}
|
45
45
|
end
|
@@ -51,8 +51,8 @@ module MailSlurpClient
|
|
51
51
|
:'content_length' => :'Integer',
|
52
52
|
:'content_type' => :'String',
|
53
53
|
:'user_id' => :'String',
|
54
|
-
:'attachment_id' => :'String',
|
55
54
|
:'created_at' => :'DateTime',
|
55
|
+
:'attachment_id' => :'String',
|
56
56
|
:'updated_at' => :'DateTime'
|
57
57
|
}
|
58
58
|
end
|
@@ -94,14 +94,14 @@ module MailSlurpClient
|
|
94
94
|
self.user_id = attributes[:'user_id']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'attachment_id')
|
98
|
-
self.attachment_id = attributes[:'attachment_id']
|
99
|
-
end
|
100
|
-
|
101
97
|
if attributes.key?(:'created_at')
|
102
98
|
self.created_at = attributes[:'created_at']
|
103
99
|
end
|
104
100
|
|
101
|
+
if attributes.key?(:'attachment_id')
|
102
|
+
self.attachment_id = attributes[:'attachment_id']
|
103
|
+
end
|
104
|
+
|
105
105
|
if attributes.key?(:'updated_at')
|
106
106
|
self.updated_at = attributes[:'updated_at']
|
107
107
|
end
|
@@ -115,14 +115,14 @@ module MailSlurpClient
|
|
115
115
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
116
116
|
end
|
117
117
|
|
118
|
-
if @attachment_id.nil?
|
119
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
118
|
if @created_at.nil?
|
123
119
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
124
120
|
end
|
125
121
|
|
122
|
+
if @attachment_id.nil?
|
123
|
+
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
126
|
if @updated_at.nil?
|
127
127
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
128
128
|
end
|
@@ -134,8 +134,8 @@ module MailSlurpClient
|
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
136
|
return false if @user_id.nil?
|
137
|
-
return false if @attachment_id.nil?
|
138
137
|
return false if @created_at.nil?
|
138
|
+
return false if @attachment_id.nil?
|
139
139
|
return false if @updated_at.nil?
|
140
140
|
true
|
141
141
|
end
|
@@ -149,8 +149,8 @@ module MailSlurpClient
|
|
149
149
|
content_length == o.content_length &&
|
150
150
|
content_type == o.content_type &&
|
151
151
|
user_id == o.user_id &&
|
152
|
-
attachment_id == o.attachment_id &&
|
153
152
|
created_at == o.created_at &&
|
153
|
+
attachment_id == o.attachment_id &&
|
154
154
|
updated_at == o.updated_at
|
155
155
|
end
|
156
156
|
|
@@ -163,7 +163,7 @@ module MailSlurpClient
|
|
163
163
|
# Calculates hash code according to all attributes.
|
164
164
|
# @return [Integer] Hash code
|
165
165
|
def hash
|
166
|
-
[name, content_length, content_type, user_id,
|
166
|
+
[name, content_length, content_type, user_id, created_at, attachment_id, updated_at].hash
|
167
167
|
end
|
168
168
|
|
169
169
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :group_id
|
20
20
|
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
21
23
|
attr_accessor :first_name
|
22
24
|
|
23
25
|
attr_accessor :last_name
|
@@ -28,19 +30,17 @@ module MailSlurpClient
|
|
28
30
|
|
29
31
|
attr_accessor :opt_out
|
30
32
|
|
31
|
-
attr_accessor :created_at
|
32
|
-
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
36
|
:'id' => :'id',
|
37
37
|
:'group_id' => :'groupId',
|
38
|
+
:'created_at' => :'createdAt',
|
38
39
|
:'first_name' => :'firstName',
|
39
40
|
:'last_name' => :'lastName',
|
40
41
|
:'company' => :'company',
|
41
42
|
:'email_addresses' => :'emailAddresses',
|
42
|
-
:'opt_out' => :'optOut'
|
43
|
-
:'created_at' => :'createdAt'
|
43
|
+
:'opt_out' => :'optOut'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -49,12 +49,12 @@ module MailSlurpClient
|
|
49
49
|
{
|
50
50
|
:'id' => :'String',
|
51
51
|
:'group_id' => :'String',
|
52
|
+
:'created_at' => :'DateTime',
|
52
53
|
:'first_name' => :'String',
|
53
54
|
:'last_name' => :'String',
|
54
55
|
:'company' => :'String',
|
55
56
|
:'email_addresses' => :'Array<String>',
|
56
|
-
:'opt_out' => :'Boolean'
|
57
|
-
:'created_at' => :'DateTime'
|
57
|
+
:'opt_out' => :'Boolean'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -87,6 +87,10 @@ module MailSlurpClient
|
|
87
87
|
self.group_id = attributes[:'group_id']
|
88
88
|
end
|
89
89
|
|
90
|
+
if attributes.key?(:'created_at')
|
91
|
+
self.created_at = attributes[:'created_at']
|
92
|
+
end
|
93
|
+
|
90
94
|
if attributes.key?(:'first_name')
|
91
95
|
self.first_name = attributes[:'first_name']
|
92
96
|
end
|
@@ -108,10 +112,6 @@ module MailSlurpClient
|
|
108
112
|
if attributes.key?(:'opt_out')
|
109
113
|
self.opt_out = attributes[:'opt_out']
|
110
114
|
end
|
111
|
-
|
112
|
-
if attributes.key?(:'created_at')
|
113
|
-
self.created_at = attributes[:'created_at']
|
114
|
-
end
|
115
115
|
end
|
116
116
|
|
117
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,12 +144,12 @@ module MailSlurpClient
|
|
144
144
|
self.class == o.class &&
|
145
145
|
id == o.id &&
|
146
146
|
group_id == o.group_id &&
|
147
|
+
created_at == o.created_at &&
|
147
148
|
first_name == o.first_name &&
|
148
149
|
last_name == o.last_name &&
|
149
150
|
company == o.company &&
|
150
151
|
email_addresses == o.email_addresses &&
|
151
|
-
opt_out == o.opt_out
|
152
|
-
created_at == o.created_at
|
152
|
+
opt_out == o.opt_out
|
153
153
|
end
|
154
154
|
|
155
155
|
# @see the `==` method
|
@@ -161,7 +161,7 @@ module MailSlurpClient
|
|
161
161
|
# Calculates hash code according to all attributes.
|
162
162
|
# @return [Integer] Hash code
|
163
163
|
def hash
|
164
|
-
[id, group_id, first_name, last_name, company, email_addresses, opt_out
|
164
|
+
[id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
|
165
165
|
end
|
166
166
|
|
167
167
|
# Builds the object from hash
|