mailslurp.api.BulkActionsControllerApi
Load the API package
All URIs are relative to https://api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
bulkCreateInboxes | POST /bulk/inboxes | Bulk create Inboxes (email addresses) |
bulkDeleteInboxes | DELETE /bulk/inboxes | Bulk Delete Inboxes |
bulkSendEmails | POST /bulk/send | Bulk Send Emails |
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
Name | Type | Description | Notes |
---|---|---|---|
count | int | Number of inboxes to be created in bulk |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to ]
bulkDeleteInboxes(requestBody)
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 requestBody = [List<String>()]; // List<String> |
try {
api_instance.bulkDeleteInboxes(requestBody);
} catch (e) {
print('Exception when calling BulkActionsControllerApi->bulkDeleteInboxes: $en');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
requestBody | List |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to ]
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 |
try {
api_instance.bulkSendEmails(bulkSendEmailOptions);
} catch (e) {
print('Exception when calling BulkActionsControllerApi->bulkSendEmails: $en');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
bulkSendEmailOptions | BulkSendEmailOptions |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to ]