# OAIBulkActionsControllerApi

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

-(NSURLSessionTask*) bulkCreateInboxesWithCount: (NSNumber*) count
        completionHandler: (void (^)(List<OAIInbox>* output, NSError* error)) handler;

Bulk create Inboxes (email addresses)

# Example

OAIDefaultConfiguration *apiConfig = [OAIDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: API_KEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-api-key"];
NSNumber* count = @56; // Number of inboxes to be created in bulk
OAIBulkActionsControllerApi*apiInstance = [[OAIBulkActionsControllerApi alloc] init];
// Bulk create Inboxes (email addresses)
[apiInstance bulkCreateInboxesWithCount:count
          completionHandler: ^(List<OAIInbox>* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling OAIBulkActionsControllerApi->bulkCreateInboxes: %@", error);
                        }
                    }];

# Parameters

Name Type Description Notes
count NSNumber* Number of inboxes to be created in bulk

# Return type

List<OAIInbox>*

# 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 README]

# bulkDeleteInboxes

-(NSURLSessionTask*) bulkDeleteInboxesWithIds: (List&lt;NSString*&gt;*) ids
        completionHandler: (void (^)(NSError* error)) handler;

Bulk Delete Inboxes

# Example

OAIDefaultConfiguration *apiConfig = [OAIDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: API_KEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-api-key"];
List&lt;NSString*&gt;* ids = @[@"ids_example"]; // ids
OAIBulkActionsControllerApi*apiInstance = [[OAIBulkActionsControllerApi alloc] init];
// Bulk Delete Inboxes
[apiInstance bulkDeleteInboxesWithIds:ids
          completionHandler: ^(NSError* error) {
                        if (error) {
                            NSLog(@"Error calling OAIBulkActionsControllerApi->bulkDeleteInboxes: %@", error);
                        }
                    }];

# Parameters

Name Type Description Notes
ids *NSArray<NSString>*** 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 README]

# bulkSendEmails

-(NSURLSessionTask*) bulkSendEmailsWithBulkSendEmailOptions: (OAIBulkSendEmailOptions*) bulkSendEmailOptions
        completionHandler: (void (^)(NSError* error)) handler;

Bulk Send Emails

# Example

OAIDefaultConfiguration *apiConfig = [OAIDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: API_KEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-api-key"];
OAIBulkSendEmailOptions* bulkSendEmailOptions = [[OAIBulkSendEmailOptions alloc] init]; // bulkSendEmailOptions
OAIBulkActionsControllerApi*apiInstance = [[OAIBulkActionsControllerApi alloc] init];
// Bulk Send Emails
[apiInstance bulkSendEmailsWithBulkSendEmailOptions:bulkSendEmailOptions
          completionHandler: ^(NSError* error) {
                        if (error) {
                            NSLog(@"Error calling OAIBulkActionsControllerApi->bulkSendEmails: %@", error);
                        }
                    }];

# Parameters

Name Type Description Notes
bulkSendEmailOptions OAIBulkSendEmailOptions* bulkSendEmailOptions

# 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 README]