mailslurp_client 11.11.0 → 11.15.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: 41fe85cd74e85ccdd84615c7a3eb8a2169ef54fc73c49f8c8c3ba2f614a4b15e
4
- data.tar.gz: 11c152cc56e56ff3d833a0d0d0c8cd43849c8c2fa8d1e1a0577b87ca974083a7
3
+ metadata.gz: 29073b9c4d625958253a621ebe220124ec2cf4cf338f2414eeed496f705201ff
4
+ data.tar.gz: 7e9aadaf455662912acff558413295776123aa058072b13cc0ad08873af405f7
5
5
  SHA512:
6
- metadata.gz: bae501eadf151c3aaea83cf9a28d7a8e266e9cf898f8a00e9b81adb8983641924371334c0ec817cf6191873c3af61776bc2f3b10c9ab8d9b2fe2fd5e265db34f
7
- data.tar.gz: a30bd45b40d36e4a46775a5eea20d5c1243b1ed3b4e60ebee4b1f5d526b0f087eb9c49c608622f2a2d60da88300ff3bf3578cd09d4233d5ca073b3ce03cda2eb
6
+ metadata.gz: e856d969cd1c100707dc1448257acfeb1fc1016009774d1e7936e3d87a28e026e9622fdcac5d180e39178bc28f747d32bab9c0b928f8ceb2547fabc62d9026a8
7
+ data.tar.gz: fb59e397c3e9144bd6dba1a632593fbfb74bc7a20ca5cffab477eec5686261ee8bfc0bd44328404caac25e2325feae6479995cb0892dcd76c8c892f16a8176fe
@@ -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 &#x60;plain/text&#x60; 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 &#x60;octet-stream&#x60; 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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '11.11.0'
14
+ VERSION = '11.15.0'
15
15
  end
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.11.0
4
+ version: 11.15.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 00:00:00.000000000 Z
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.