Load the API package

use MailSlurp::Object::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

ARRAY[InboxDto] bulk_create_inboxes(count => $count)

Bulk create Inboxes (email addresses)

Example

use Data::Dumper;
use MailSlurp::BulkActionsControllerApi;
my $api_instance = MailSlurp::BulkActionsControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $count = 56; # int | Number of inboxes to be created in bulk

eval { 
    my $result = $api_instance->bulk_create_inboxes(count => $count);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BulkActionsControllerApi->bulk_create_inboxes: $@n";
}

Parameters

NameTypeDescriptionNotes
countintNumber of inboxes to be created in bulk

Return type

**ARRAY[InboxDto]**

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to ]

bulk_delete_inboxes(request_body => $request_body)

Bulk Delete Inboxes

Example

use Data::Dumper;
use MailSlurp::BulkActionsControllerApi;
my $api_instance = MailSlurp::BulkActionsControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $request_body = [MailSlurp::Object::ARRAY[string]->new()]; # ARRAY[string] | 

eval { 
    $api_instance->bulk_delete_inboxes(request_body => $request_body);
};
if ($@) {
    warn "Exception when calling BulkActionsControllerApi->bulk_delete_inboxes: $@n";
}

Parameters

NameTypeDescriptionNotes
request_body**ARRAY[string]**

Return type

void (empty response body)

Authorization

API_KEY

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to ]

bulk_send_emails(bulk_send_email_options => $bulk_send_email_options)

Bulk Send Emails

Example

use Data::Dumper;
use MailSlurp::BulkActionsControllerApi;
my $api_instance = MailSlurp::BulkActionsControllerApi->new(

    # Configure API key authorization: API_KEY
    api_key => {'x-api-key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'x-api-key' => 'Bearer'},
);

my $bulk_send_email_options = MailSlurp::Object::BulkSendEmailOptions->new(); # BulkSendEmailOptions | 

eval { 
    $api_instance->bulk_send_emails(bulk_send_email_options => $bulk_send_email_options);
};
if ($@) {
    warn "Exception when calling BulkActionsControllerApi->bulk_send_emails: $@n";
}

Parameters

NameTypeDescriptionNotes
bulk_send_email_optionsBulkSendEmailOptions

Return type

void (empty response body)

Authorization

API_KEY

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to ]