mailslurp_client 11.12.0 → 11.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a234ba673c835d62d7726836c068fd3832297aa3e86449bb526db415ed747d5e
|
4
|
+
data.tar.gz: b561674c80f4a202926e1e75334b30a83bbb8cda88c77cce5b0826d98c942157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45918cda7418664374d96caa8fe2e2b99bf3a4b32653a646756fc5c3dd37cdee25944fcf9a777d8bec24445e4cfe6e43f87bb1dc5c30bb2e9c6332e13e74522f
|
7
|
+
data.tar.gz: 46e56a81ca1ae8ce524830cdad10e037afd69c2cb2e345df4847485189eb029b49d9164bf808789af54e73ce8542bb5fb4bc5343bb4e72e967c8ed8e36e6f747
|
@@ -266,6 +266,66 @@ module MailSlurpClient
|
|
266
266
|
return data, status_code, headers
|
267
267
|
end
|
268
268
|
|
269
|
+
# Get contact vCard vcf file
|
270
|
+
# @param contact_id [String] contactId
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [String]
|
273
|
+
def get_contact_v_card(contact_id, opts = {})
|
274
|
+
data, _status_code, _headers = get_contact_v_card_with_http_info(contact_id, opts)
|
275
|
+
data
|
276
|
+
end
|
277
|
+
|
278
|
+
# Get contact vCard vcf file
|
279
|
+
# @param contact_id [String] contactId
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
282
|
+
def get_contact_v_card_with_http_info(contact_id, opts = {})
|
283
|
+
if @api_client.config.debugging
|
284
|
+
@api_client.config.logger.debug 'Calling API: ContactControllerApi.get_contact_v_card ...'
|
285
|
+
end
|
286
|
+
# verify the required parameter 'contact_id' is set
|
287
|
+
if @api_client.config.client_side_validation && contact_id.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactControllerApi.get_contact_v_card"
|
289
|
+
end
|
290
|
+
# resource path
|
291
|
+
local_var_path = '/contacts/{contactId}/download'.sub('{' + 'contactId' + '}', CGI.escape(contact_id.to_s))
|
292
|
+
|
293
|
+
# query parameters
|
294
|
+
query_params = opts[:query_params] || {}
|
295
|
+
|
296
|
+
# header parameters
|
297
|
+
header_params = opts[:header_params] || {}
|
298
|
+
# HTTP header 'Accept' (if needed)
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
300
|
+
|
301
|
+
# form parameters
|
302
|
+
form_params = opts[:form_params] || {}
|
303
|
+
|
304
|
+
# http body (model)
|
305
|
+
post_body = opts[:body]
|
306
|
+
|
307
|
+
# return_type
|
308
|
+
return_type = opts[:return_type] || 'String'
|
309
|
+
|
310
|
+
# auth_names
|
311
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
312
|
+
|
313
|
+
new_options = opts.merge(
|
314
|
+
:header_params => header_params,
|
315
|
+
:query_params => query_params,
|
316
|
+
:form_params => form_params,
|
317
|
+
:body => post_body,
|
318
|
+
:auth_names => auth_names,
|
319
|
+
:return_type => return_type
|
320
|
+
)
|
321
|
+
|
322
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
323
|
+
if @api_client.config.debugging
|
324
|
+
@api_client.config.logger.debug "API called: ContactControllerApi#get_contact_v_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
325
|
+
end
|
326
|
+
return data, status_code, headers
|
327
|
+
end
|
328
|
+
|
269
329
|
# Get all contacts
|
270
330
|
# @param [Hash] opts the optional parameters
|
271
331
|
# @return [Array<ContactProjection>]
|
@@ -272,6 +272,130 @@ module MailSlurpClient
|
|
272
272
|
return data, status_code, headers
|
273
273
|
end
|
274
274
|
|
275
|
+
# Get email body as string. Returned as `plain/text` with content type header.
|
276
|
+
# Returns the specified email body for a given email as a string
|
277
|
+
# @param email_id [String] ID of email
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [String]
|
280
|
+
def download_body(email_id, opts = {})
|
281
|
+
data, _status_code, _headers = download_body_with_http_info(email_id, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Get email body as string. Returned as `plain/text` with content type header.
|
286
|
+
# Returns the specified email body for a given email as a string
|
287
|
+
# @param email_id [String] ID of email
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
290
|
+
def download_body_with_http_info(email_id, opts = {})
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.download_body ...'
|
293
|
+
end
|
294
|
+
# verify the required parameter 'email_id' is set
|
295
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
296
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.download_body"
|
297
|
+
end
|
298
|
+
# resource path
|
299
|
+
local_var_path = '/emails/{emailId}/body'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
300
|
+
|
301
|
+
# query parameters
|
302
|
+
query_params = opts[:query_params] || {}
|
303
|
+
|
304
|
+
# header parameters
|
305
|
+
header_params = opts[:header_params] || {}
|
306
|
+
# HTTP header 'Accept' (if needed)
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html', 'text/plain'])
|
308
|
+
|
309
|
+
# form parameters
|
310
|
+
form_params = opts[:form_params] || {}
|
311
|
+
|
312
|
+
# http body (model)
|
313
|
+
post_body = opts[:body]
|
314
|
+
|
315
|
+
# return_type
|
316
|
+
return_type = opts[:return_type] || 'String'
|
317
|
+
|
318
|
+
# auth_names
|
319
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
320
|
+
|
321
|
+
new_options = opts.merge(
|
322
|
+
:header_params => header_params,
|
323
|
+
:query_params => query_params,
|
324
|
+
:form_params => form_params,
|
325
|
+
:body => post_body,
|
326
|
+
:auth_names => auth_names,
|
327
|
+
:return_type => return_type
|
328
|
+
)
|
329
|
+
|
330
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#download_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
333
|
+
end
|
334
|
+
return data, status_code, headers
|
335
|
+
end
|
336
|
+
|
337
|
+
# Get email body in bytes. Returned as `octet-stream` with content type header.
|
338
|
+
# Returns the specified email body for a given email as a stream / array of bytes.
|
339
|
+
# @param email_id [String] ID of email
|
340
|
+
# @param [Hash] opts the optional parameters
|
341
|
+
# @return [String]
|
342
|
+
def download_body_bytes(email_id, opts = {})
|
343
|
+
data, _status_code, _headers = download_body_bytes_with_http_info(email_id, opts)
|
344
|
+
data
|
345
|
+
end
|
346
|
+
|
347
|
+
# Get email body in bytes. Returned as `octet-stream` with content type header.
|
348
|
+
# Returns the specified email body for a given email as a stream / array of bytes.
|
349
|
+
# @param email_id [String] ID of email
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
352
|
+
def download_body_bytes_with_http_info(email_id, opts = {})
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.download_body_bytes ...'
|
355
|
+
end
|
356
|
+
# verify the required parameter 'email_id' is set
|
357
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
358
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.download_body_bytes"
|
359
|
+
end
|
360
|
+
# resource path
|
361
|
+
local_var_path = '/emails/{emailId}/body-bytes'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
362
|
+
|
363
|
+
# query parameters
|
364
|
+
query_params = opts[:query_params] || {}
|
365
|
+
|
366
|
+
# header parameters
|
367
|
+
header_params = opts[:header_params] || {}
|
368
|
+
# HTTP header 'Accept' (if needed)
|
369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
370
|
+
|
371
|
+
# form parameters
|
372
|
+
form_params = opts[:form_params] || {}
|
373
|
+
|
374
|
+
# http body (model)
|
375
|
+
post_body = opts[:body]
|
376
|
+
|
377
|
+
# return_type
|
378
|
+
return_type = opts[:return_type] || 'String'
|
379
|
+
|
380
|
+
# auth_names
|
381
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
382
|
+
|
383
|
+
new_options = opts.merge(
|
384
|
+
:header_params => header_params,
|
385
|
+
:query_params => query_params,
|
386
|
+
:form_params => form_params,
|
387
|
+
:body => post_body,
|
388
|
+
:auth_names => auth_names,
|
389
|
+
:return_type => return_type
|
390
|
+
)
|
391
|
+
|
392
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
393
|
+
if @api_client.config.debugging
|
394
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#download_body_bytes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
395
|
+
end
|
396
|
+
return data, status_code, headers
|
397
|
+
end
|
398
|
+
|
275
399
|
# Forward email to recipients
|
276
400
|
# Forward an existing email to new recipients.
|
277
401
|
# @param email_id [String] ID of email
|
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.13.0
|
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-14 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.
|