MailSlurpClient::BulkActionsControllerApi

All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
bulk_create_inboxesPOST /bulk/inboxesBulk create Inboxes (email addresses)
bulk_delete_inboxesDELETE /bulk/inboxesBulk Delete Inboxes
bulk_send_emailsPOST /bulk/sendBulk Send Emails

bulk_create_inboxes

Array bulk_create_inboxes(count)

Bulk create Inboxes (email addresses)

Example

# load the gem
require 'mailslurp_client'
# setup authorization
MailSlurpClient.configure do |config|
  # Configure API key authorization: API_KEY
  config.api_key['x-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['x-api-key'] = 'Bearer'
end

api_instance = MailSlurpClient::BulkActionsControllerApi.new
count = 56 # Integer | Number of inboxes to be created in bulk

begin
  #Bulk create Inboxes (email addresses)
  result = api_instance.bulk_create_inboxes(count)
  p result
rescue MailSlurpClient::ApiError => e
  puts "Exception when calling BulkActionsControllerApi->bulk_create_inboxes: #{e}"
end

Parameters

NameTypeDescriptionNotes
countIntegerNumber of inboxes to be created in bulk

Return type

Array

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

bulk_delete_inboxes

bulk_delete_inboxes(ids)

Bulk Delete Inboxes

Example

# load the gem
require 'mailslurp_client'
# setup authorization
MailSlurpClient.configure do |config|
  # Configure API key authorization: API_KEY
  config.api_key['x-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['x-api-key'] = 'Bearer'
end

api_instance = MailSlurpClient::BulkActionsControllerApi.new
ids = ['ids_example'] # Array<String> | ids

begin
  #Bulk Delete Inboxes
  api_instance.bulk_delete_inboxes(ids)
rescue MailSlurpClient::ApiError => e
  puts "Exception when calling BulkActionsControllerApi->bulk_delete_inboxes: #{e}"
end

Parameters

NameTypeDescriptionNotes
idsArrayids

Return type

nil (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

bulk_send_emails

bulk_send_emails(bulk_send_email_options)

Bulk Send Emails

Example

# load the gem
require 'mailslurp_client'
# setup authorization
MailSlurpClient.configure do |config|
  # Configure API key authorization: API_KEY
  config.api_key['x-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['x-api-key'] = 'Bearer'
end

api_instance = MailSlurpClient::BulkActionsControllerApi.new
bulk_send_email_options = MailSlurpClient::BulkSendEmailOptions.new # BulkSendEmailOptions | bulkSendEmailOptions

begin
  #Bulk Send Emails
  api_instance.bulk_send_emails(bulk_send_email_options)
rescue MailSlurpClient::ApiError => e
  puts "Exception when calling BulkActionsControllerApi->bulk_send_emails: #{e}"
end

Parameters

NameTypeDescriptionNotes
bulk_send_email_optionsBulkSendEmailOptionsbulkSendEmailOptions

Return type

nil (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined