mailslurp.api.BulkActionsControllerApi

Load the API package

import 'package:mailslurp/api.dart';

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

MethodHTTP requestDescription
bulkCreateInboxesPOST /bulk/inboxesBulk create Inboxes (email addresses)
bulkDeleteInboxesDELETE /bulk/inboxesBulk Delete Inboxes
bulkSendEmailsPOST /bulk/sendBulk Send Emails

bulkCreateInboxes

List bulkCreateInboxes(count)

Bulk create Inboxes (email addresses)

Example

import 'package:mailslurp/api.dart';
// TODO Configure API key authorization: API_KEY
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKeyPrefix = 'Bearer';

final api_instance = BulkActionsControllerApi();
final count = 56; // int | Number of inboxes to be created in bulk

try { 
    final result = api_instance.bulkCreateInboxes(count);
    print(result);
} catch (e) {
    print('Exception when calling BulkActionsControllerApi->bulkCreateInboxes: $en');
}

Parameters

NameTypeDescriptionNotes
countintNumber of inboxes to be created in bulk

Return type

List

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 ]

bulkDeleteInboxes

bulkDeleteInboxes(ids)

Bulk Delete Inboxes

Example

import 'package:mailslurp/api.dart';
// TODO Configure API key authorization: API_KEY
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKeyPrefix = 'Bearer';

final api_instance = BulkActionsControllerApi();
final ids = [List<String>()]; // List<String> | ids

try { 
    api_instance.bulkDeleteInboxes(ids);
} catch (e) {
    print('Exception when calling BulkActionsControllerApi->bulkDeleteInboxes: $en');
}

Parameters

NameTypeDescriptionNotes
idsListids

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 ]

bulkSendEmails

bulkSendEmails(bulkSendEmailOptions)

Bulk Send Emails

Example

import 'package:mailslurp/api.dart';
// TODO Configure API key authorization: API_KEY
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKeyPrefix = 'Bearer';

final api_instance = BulkActionsControllerApi();
final bulkSendEmailOptions = BulkSendEmailOptions(); // BulkSendEmailOptions | bulkSendEmailOptions

try { 
    api_instance.bulkSendEmails(bulkSendEmailOptions);
} catch (e) {
    print('Exception when calling BulkActionsControllerApi->bulkSendEmails: $en');
}

Parameters

NameTypeDescriptionNotes
bulkSendEmailOptionsBulkSendEmailOptionsbulkSendEmailOptions

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 ]