# mailslurp.Api.BulkActionsControllerApi
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 |
# BulkCreateInboxes
List<Inbox> BulkCreateInboxes (int count)
Bulk create Inboxes (email addresses)
# Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp.Api;
using mailslurp.Client;
using mailslurp.Model;
namespace Example
{
public class BulkCreateInboxesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BulkActionsControllerApi(config);
var count = 56; // int | Number of inboxes to be created in bulk
try
{
// Bulk create Inboxes (email addresses)
List<Inbox> result = apiInstance.BulkCreateInboxes(count);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BulkActionsControllerApi.BulkCreateInboxes: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
# 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: application/json
# HTTP response details
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
# BulkDeleteInboxes
void BulkDeleteInboxes (List
ids)
Bulk Delete Inboxes
# Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp.Api;
using mailslurp.Client;
using mailslurp.Model;
namespace Example
{
public class BulkDeleteInboxesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BulkActionsControllerApi(config);
var ids = new List<Guid>(); // List<Guid> | ids
try
{
// Bulk Delete Inboxes
apiInstance.BulkDeleteInboxes(ids);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BulkActionsControllerApi.BulkDeleteInboxes: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
ids | List<Guid> | ids |
# Return type
void (empty response body)
# Authorization
# HTTP request headers
- Content-Type: application/json
- Accept: Not defined
# HTTP response details
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
# BulkSendEmails
void BulkSendEmails (BulkSendEmailOptions bulkSendEmailOptions)
Bulk Send Emails
# Example
using System.Collections.Generic;
using System.Diagnostics;
using mailslurp.Api;
using mailslurp.Client;
using mailslurp.Model;
namespace Example
{
public class BulkSendEmailsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.mailslurp.com";
// Configure API key authorization: API_KEY
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BulkActionsControllerApi(config);
var bulkSendEmailOptions = new BulkSendEmailOptions(); // BulkSendEmailOptions | bulkSendEmailOptions
try
{
// Bulk Send Emails
apiInstance.BulkSendEmails(bulkSendEmailOptions);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BulkActionsControllerApi.BulkSendEmails: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
bulkSendEmailOptions | BulkSendEmailOptions | bulkSendEmailOptions |
# Return type
void (empty response body)
# Authorization
# HTTP request headers
- Content-Type: application/json
- Accept: Not defined
# HTTP response details
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]