mailslurp_client 11.8.13 → 11.9.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/attachment_controller_api.rb +186 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +24 -24
- data/lib/mailslurp_client/api/inbox_controller_api.rb +66 -12
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +8 -8
- data/lib/mailslurp_client/models/attachment_meta_data.rb +2 -2
- data/lib/mailslurp_client/models/download_attachment_dto.rb +3 -3
- data/lib/mailslurp_client/models/email.rb +8 -7
- data/lib/mailslurp_client/models/email_preview.rb +3 -3
- data/lib/mailslurp_client/models/inbox.rb +3 -3
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
- data/lib/mailslurp_client/models/webhook_payload.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c22a93ce6a491081d7363abcf426711694392876c24ab636d0622352ba52da
|
4
|
+
data.tar.gz: 047c593cca66950a9f895f162dbb526c3652ca2dcb04d06e487787c5e5b25056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef83e194f79409d63dc4081a74b6cac6b0a090dfea01f282e2599bc1255209072d36b7ed2523b69e9a158a19c81abf7dfa8de266686b690c69c51ec49462d57
|
7
|
+
data.tar.gz: f99073f4219ecdb6f07fc06fb7de6ccae6d96a5c81ffa1fd08f8aaed556692e44cb184980dc103cd88be2a7bb24063a2099aa131152481cfe6dc3353fdd4819d
|
@@ -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 `downloadAttachmentBase64` 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 `name` and `content-type` and `content-length` 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 `downloadAttachmentBase64` response endpoints.
|
148
|
+
# 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.
|
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
|
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
|
218
|
+
# 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`.
|
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 `downloadAttachment` 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 `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` 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: `?apiKey=xxx`
|
621
621
|
# @param email_id [String] emailId
|
622
622
|
# @param [Hash] opts the optional parameters
|
@@ -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 `WaitForController` 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
|
@@ -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
|
@@ -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
|
@@ -19,7 +19,7 @@ module MailSlurpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create an
|
22
|
+
# Create an inbox email address. An inbox has a real email address and can send and receive emails.
|
23
23
|
# Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Boolean] :allow_team_access Grant team access to this inbox and the emails that belong to it for team members of your organization.
|
@@ -37,7 +37,7 @@ module MailSlurpClient
|
|
37
37
|
data
|
38
38
|
end
|
39
39
|
|
40
|
-
# Create an
|
40
|
+
# Create an inbox email address. An inbox has a real email address and can send and receive emails.
|
41
41
|
# Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
|
42
42
|
# @param [Hash] opts the optional parameters
|
43
43
|
# @option opts [Boolean] :allow_team_access Grant team access to this inbox and the emails that belong to it for team members of your organization.
|
@@ -102,7 +102,61 @@ module MailSlurpClient
|
|
102
102
|
return data, status_code, headers
|
103
103
|
end
|
104
104
|
|
105
|
-
# Create an inbox with
|
105
|
+
# Create an inbox with default options. Uses MailSlurp domain pool address and is private.
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @return [Inbox]
|
108
|
+
def create_inbox_with_defaults(opts = {})
|
109
|
+
data, _status_code, _headers = create_inbox_with_defaults_with_http_info(opts)
|
110
|
+
data
|
111
|
+
end
|
112
|
+
|
113
|
+
# Create an inbox with default options. Uses MailSlurp domain pool address and is private.
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [Array<(Inbox, Integer, Hash)>] Inbox data, response status code and response headers
|
116
|
+
def create_inbox_with_defaults_with_http_info(opts = {})
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.create_inbox_with_defaults ...'
|
119
|
+
end
|
120
|
+
# resource path
|
121
|
+
local_var_path = '/inboxes/withDefaults'
|
122
|
+
|
123
|
+
# query parameters
|
124
|
+
query_params = opts[:query_params] || {}
|
125
|
+
|
126
|
+
# header parameters
|
127
|
+
header_params = opts[:header_params] || {}
|
128
|
+
# HTTP header 'Accept' (if needed)
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
130
|
+
|
131
|
+
# form parameters
|
132
|
+
form_params = opts[:form_params] || {}
|
133
|
+
|
134
|
+
# http body (model)
|
135
|
+
post_body = opts[:body]
|
136
|
+
|
137
|
+
# return_type
|
138
|
+
return_type = opts[:return_type] || 'Inbox'
|
139
|
+
|
140
|
+
# auth_names
|
141
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
142
|
+
|
143
|
+
new_options = opts.merge(
|
144
|
+
:header_params => header_params,
|
145
|
+
:query_params => query_params,
|
146
|
+
:form_params => form_params,
|
147
|
+
:body => post_body,
|
148
|
+
:auth_names => auth_names,
|
149
|
+
:return_type => return_type
|
150
|
+
)
|
151
|
+
|
152
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
153
|
+
if @api_client.config.debugging
|
154
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#create_inbox_with_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
+
end
|
156
|
+
return data, status_code, headers
|
157
|
+
end
|
158
|
+
|
159
|
+
# Create an inbox with options. Extended options for inbox creation.
|
106
160
|
# Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
|
107
161
|
# @param create_inbox_dto [CreateInboxDto] createInboxDto
|
108
162
|
# @param [Hash] opts the optional parameters
|
@@ -112,7 +166,7 @@ module MailSlurpClient
|
|
112
166
|
data
|
113
167
|
end
|
114
168
|
|
115
|
-
# Create an inbox with
|
169
|
+
# Create an inbox with options. Extended options for inbox creation.
|
116
170
|
# Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
|
117
171
|
# @param create_inbox_dto [CreateInboxDto] createInboxDto
|
118
172
|
# @param [Hash] opts the optional parameters
|
@@ -445,7 +499,7 @@ module MailSlurpClient
|
|
445
499
|
return data, status_code, headers
|
446
500
|
end
|
447
501
|
|
448
|
-
# Get Inbox
|
502
|
+
# Get Inbox. Returns properties of an inbox.
|
449
503
|
# Returns an inbox's properties, including its email address and ID.
|
450
504
|
# @param inbox_id [String] inboxId
|
451
505
|
# @param [Hash] opts the optional parameters
|
@@ -455,7 +509,7 @@ module MailSlurpClient
|
|
455
509
|
data
|
456
510
|
end
|
457
511
|
|
458
|
-
# Get Inbox
|
512
|
+
# Get Inbox. Returns properties of an inbox.
|
459
513
|
# Returns an inbox's properties, including its email address and ID.
|
460
514
|
# @param inbox_id [String] inboxId
|
461
515
|
# @param [Hash] opts the optional parameters
|
@@ -713,7 +767,7 @@ module MailSlurpClient
|
|
713
767
|
return data, status_code, headers
|
714
768
|
end
|
715
769
|
|
716
|
-
# List Inboxes
|
770
|
+
# List Inboxes and email eddresses
|
717
771
|
# List the inboxes you have created. Note use of the more advanced `getAllEmails` is recommended. You can provide a limit and sort parameter.
|
718
772
|
# @param [Hash] opts the optional parameters
|
719
773
|
# @option opts [Integer] :size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (default to 100)
|
@@ -724,7 +778,7 @@ module MailSlurpClient
|
|
724
778
|
data
|
725
779
|
end
|
726
780
|
|
727
|
-
# List Inboxes
|
781
|
+
# List Inboxes and email eddresses
|
728
782
|
# List the inboxes you have created. Note use of the more advanced `getAllEmails` is recommended. You can provide a limit and sort parameter.
|
729
783
|
# @param [Hash] opts the optional parameters
|
730
784
|
# @option opts [Integer] :size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries.
|
@@ -913,7 +967,7 @@ module MailSlurpClient
|
|
913
967
|
end
|
914
968
|
|
915
969
|
# Send email and return sent confirmation
|
916
|
-
# Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link
|
970
|
+
# Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it.
|
917
971
|
# @param inbox_id [String] ID of the inbox you want to send the email from
|
918
972
|
# @param [Hash] opts the optional parameters
|
919
973
|
# @option opts [SendEmailOptions] :send_email_options Options for the email
|
@@ -924,7 +978,7 @@ module MailSlurpClient
|
|
924
978
|
end
|
925
979
|
|
926
980
|
# Send email and return sent confirmation
|
927
|
-
# Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link
|
981
|
+
# Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it.
|
928
982
|
# @param inbox_id [String] ID of the inbox you want to send the email from
|
929
983
|
# @param [Hash] opts the optional parameters
|
930
984
|
# @option opts [SendEmailOptions] :send_email_options Options for the email
|
@@ -1048,7 +1102,7 @@ module MailSlurpClient
|
|
1048
1102
|
return data, status_code, headers
|
1049
1103
|
end
|
1050
1104
|
|
1051
|
-
# Update Inbox
|
1105
|
+
# Update Inbox. Change name and description. Email address is not editable.
|
1052
1106
|
# Update editable fields on an inbox
|
1053
1107
|
# @param inbox_id [String] inboxId
|
1054
1108
|
# @param update_inbox_options [UpdateInboxOptions] updateInboxOptions
|
@@ -1059,7 +1113,7 @@ module MailSlurpClient
|
|
1059
1113
|
data
|
1060
1114
|
end
|
1061
1115
|
|
1062
|
-
# Update Inbox
|
1116
|
+
# Update Inbox. Change name and description. Email address is not editable.
|
1063
1117
|
# Update editable fields on an inbox
|
1064
1118
|
# @param inbox_id [String] inboxId
|
1065
1119
|
# @param update_inbox_options [UpdateInboxOptions] updateInboxOptions
|
@@ -19,20 +19,20 @@ module MailSlurpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Wait for
|
22
|
+
# Wait for an email to match the provided filter conditions such as subject contains keyword.
|
23
23
|
# Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [WaitForConditions] :wait_for_conditions Conditions to
|
25
|
+
# @option opts [WaitForConditions] :wait_for_conditions Conditions to apply to emails that you are waiting for
|
26
26
|
# @return [Array<EmailPreview>]
|
27
27
|
def wait_for(opts = {})
|
28
28
|
data, _status_code, _headers = wait_for_with_http_info(opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Wait for
|
32
|
+
# Wait for an email to match the provided filter conditions such as subject contains keyword.
|
33
33
|
# Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @option opts [WaitForConditions] :wait_for_conditions Conditions to
|
35
|
+
# @option opts [WaitForConditions] :wait_for_conditions Conditions to apply to emails that you are waiting for
|
36
36
|
# @return [Array<(Array<EmailPreview>, Integer, Hash)>] Array<EmailPreview> data, response status code and response headers
|
37
37
|
def wait_for_with_http_info(opts = {})
|
38
38
|
if @api_client.config.debugging
|
@@ -79,7 +79,7 @@ module MailSlurpClient
|
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
81
81
|
|
82
|
-
# Wait for and return count number of emails
|
82
|
+
# Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
|
83
83
|
# If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
|
@@ -92,7 +92,7 @@ module MailSlurpClient
|
|
92
92
|
data
|
93
93
|
end
|
94
94
|
|
95
|
-
# Wait for and return count number of emails
|
95
|
+
# Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
|
96
96
|
# If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
|
@@ -361,7 +361,7 @@ module MailSlurpClient
|
|
361
361
|
return data, status_code, headers
|
362
362
|
end
|
363
363
|
|
364
|
-
# Wait for or fetch the email with a given index in the inbox specified
|
364
|
+
# Wait for or fetch the email with a given index in the inbox specified. IF indx doesn't exist waits for it to exist or timeout to occur.
|
365
365
|
# If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
|
366
366
|
# @param [Hash] opts the optional parameters
|
367
367
|
# @option opts [String] :inbox_id Id of the inbox you are fetching emails from
|
@@ -374,7 +374,7 @@ module MailSlurpClient
|
|
374
374
|
data
|
375
375
|
end
|
376
376
|
|
377
|
-
# Wait for or fetch the email with a given index in the inbox specified
|
377
|
+
# Wait for or fetch the email with a given index in the inbox specified. IF indx doesn't exist waits for it to exist or timeout to occur.
|
378
378
|
# If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
|
379
379
|
# @param [Hash] opts the optional parameters
|
380
380
|
# @option opts [String] :inbox_id Id of the inbox you are fetching emails from
|
@@ -18,13 +18,13 @@ module MailSlurpClient
|
|
18
18
|
# Size of attachment in bytes
|
19
19
|
attr_accessor :content_length
|
20
20
|
|
21
|
-
# Content type of attachment
|
21
|
+
# Content type of attachment such as `image/png`
|
22
22
|
attr_accessor :content_type
|
23
23
|
|
24
24
|
# ID of attachment
|
25
25
|
attr_accessor :id
|
26
26
|
|
27
|
-
# Name of attachment
|
27
|
+
# Name of attachment if given
|
28
28
|
attr_accessor :name
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Content of attachment
|
17
17
|
class DownloadAttachmentDto
|
18
|
-
# Base64 encoded string of attachment bytes. Decode the base64 string to get the raw file
|
18
|
+
# Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding.
|
19
19
|
attr_accessor :base64_file_contents
|
20
20
|
|
21
|
-
# Content type of attachment
|
21
|
+
# Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc.
|
22
22
|
attr_accessor :content_type
|
23
23
|
|
24
|
-
# Size in bytes of attachment
|
24
|
+
# Size in bytes of attachment content
|
25
25
|
attr_accessor :size_bytes
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Email
|
16
|
+
# Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController
|
17
17
|
class Email
|
18
18
|
attr_accessor :analysis
|
19
19
|
|
@@ -41,21 +41,22 @@ module MailSlurpClient
|
|
41
41
|
# Who the email was sent from
|
42
42
|
attr_accessor :from
|
43
43
|
|
44
|
+
# Collection of SMTP headers attached to email
|
44
45
|
attr_accessor :headers
|
45
46
|
|
46
|
-
# ID of the email
|
47
|
+
# ID of the email entity
|
47
48
|
attr_accessor :id
|
48
49
|
|
49
50
|
# ID of the inbox that received the email
|
50
51
|
attr_accessor :inbox_id
|
51
52
|
|
52
|
-
#
|
53
|
+
# Is the email body HTML
|
53
54
|
attr_accessor :is_html
|
54
55
|
|
55
|
-
# Has the email
|
56
|
+
# Read flag. Has the email ever been viewed in the dashboard or fetched via the API? If so the email is marked as read.
|
56
57
|
attr_accessor :read
|
57
58
|
|
58
|
-
# The replyTo field on the received email
|
59
|
+
# The `replyTo` field on the received email message
|
59
60
|
attr_accessor :reply_to
|
60
61
|
|
61
62
|
# The subject line of the email message
|
@@ -64,13 +65,13 @@ module MailSlurpClient
|
|
64
65
|
# Can the email be accessed by organization team members
|
65
66
|
attr_accessor :team_access
|
66
67
|
|
67
|
-
# List of `To` recipients email was addressed to
|
68
|
+
# List of `To` recipients that email was addressed to
|
68
69
|
attr_accessor :to
|
69
70
|
|
70
71
|
# When was the email last updated
|
71
72
|
attr_accessor :updated_at
|
72
73
|
|
73
|
-
# ID of user that email belongs
|
74
|
+
# ID of user that email belongs to
|
74
75
|
attr_accessor :user_id
|
75
76
|
|
76
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,16 +30,16 @@ module MailSlurpClient
|
|
30
30
|
# Who the email was sent from
|
31
31
|
attr_accessor :from
|
32
32
|
|
33
|
-
# ID of the email
|
33
|
+
# ID of the email entity
|
34
34
|
attr_accessor :id
|
35
35
|
|
36
|
-
# Has the email
|
36
|
+
# Read flag. Has the email ever been viewed in the dashboard or fetched via the API? If so the email is marked as read.
|
37
37
|
attr_accessor :read
|
38
38
|
|
39
39
|
# The subject line of the email message
|
40
40
|
attr_accessor :subject
|
41
41
|
|
42
|
-
# List of `To` recipients email was addressed to
|
42
|
+
# List of `To` recipients that email was addressed to
|
43
43
|
attr_accessor :to
|
44
44
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Representation of
|
16
|
+
# Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments.
|
17
17
|
class Inbox
|
18
18
|
# When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
|
19
19
|
attr_accessor :created_at
|
@@ -36,13 +36,13 @@ module MailSlurpClient
|
|
36
36
|
# Name of the inbox. Displayed in the dashboard for easier search
|
37
37
|
attr_accessor :name
|
38
38
|
|
39
|
-
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified.
|
39
|
+
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
|
40
40
|
attr_accessor :read_only
|
41
41
|
|
42
42
|
# Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
|
43
43
|
attr_accessor :tags
|
44
44
|
|
45
|
-
# Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it.
|
45
|
+
# Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
|
46
46
|
attr_accessor :team_access
|
47
47
|
|
48
48
|
# ID of user that inbox belongs to
|
@@ -29,13 +29,13 @@ module MailSlurpClient
|
|
29
29
|
# Name of the inbox. Displayed in the dashboard for easier search
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
|
-
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified.
|
32
|
+
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
|
33
33
|
attr_accessor :read_only
|
34
34
|
|
35
35
|
# Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
|
36
36
|
attr_accessor :tags
|
37
37
|
|
38
|
-
# Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it.
|
38
|
+
# Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
|
39
39
|
attr_accessor :team_access
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox.
|
16
|
+
# Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.
|
17
17
|
class WebhookDto
|
18
18
|
# Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself.
|
19
19
|
attr_accessor :basic_auth
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# MailSlurp webhook payload schema. This schema describes the JSON object that is sent via HTTP POST to webhook urls when an email is received by an inbox that a webhook is attached to. Payloads may be delivered multiple times so use the ID as a key for event uniqueness. The payload contains IDs for the email and inbox affected. Use these to fetch more data related to the event using appropriate inbox and email endpoints. See https://www.mailslurp.com/guides/email-webhooks/ for more information. Your webhook endpoint should accept POST HTTP request and return a 200 in under 30 seconds. Process the webhook asynchronously if you need to.
|
16
|
+
# MailSlurp webhook payload schema is available at https://api.mailslurp.com/schemas/webhook-payload. This schema describes the JSON object that is sent via HTTP POST to webhook urls when an email is received by an inbox that a webhook is attached to. Payloads may be delivered multiple times so use the ID as a key for event uniqueness. The payload contains IDs for the email and inbox affected. Use these to fetch more data related to the event using appropriate inbox and email endpoints. See https://www.mailslurp.com/guides/email-webhooks/ for more information. Your webhook endpoint should accept POST HTTP request and return a 200 in under 30 seconds. Process the webhook asynchronously if you need to.
|
17
17
|
class WebhookPayload
|
18
18
|
# List of attachment meta data objects if attachments present
|
19
19
|
attr_accessor :attachment_meta_datas
|
@@ -45,7 +45,7 @@ module MailSlurpClient
|
|
45
45
|
# The subject line of the email message
|
46
46
|
attr_accessor :subject
|
47
47
|
|
48
|
-
# List of `To` recipients email was addressed to
|
48
|
+
# List of `To` recipients that email was addressed to
|
49
49
|
attr_accessor :to
|
50
50
|
|
51
51
|
# ID of webhook entity being triggered
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|