MailSlurp::BulkActionsControllerApi

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

bulk_create_inboxes

ARRAY[Inbox] 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[Inbox]**

Authorization

API_KEY

HTTP request headers

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

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

bulk_delete_inboxes

bulk_delete_inboxes(ids => $ids)

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 $ids = [MailSlurp::Object::ARRAY[string]->new()]; # ARRAY[string] | ids

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

Parameters

NameTypeDescriptionNotes
ids**ARRAY[string]**ids

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_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 | 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_optionsBulkSendEmailOptionsbulkSendEmailOptions

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 ]