Inherits from NSObject
Declared in OlapicBulkRequest.h

Overview

Create and process bulk requests to the API

Instance Methods

addRequestToURL:

Add a URL to the batch

- (void)addRequestToURL:(NSString *)URL

Parameters

URL

The URL to be added

Availability

v1.0

Declared In

OlapicBulkRequest.h

addRequestToURL:withParameters:

Add a URL with extra query string parameters to the batch

- (void)addRequestToURL:(NSString *)URL withParameters:(NSDictionary *)parameters

Parameters

URL

The URL to be added

parameters

The extra parameters

Availability

v1.0

Declared In

OlapicBulkRequest.h

addRequestToURL:withParameters:requestHeaders:

Add a URL to the batch, with extra query string parameters and extra request headers

- (void)addRequestToURL:(NSString *)URL withParameters:(NSDictionary *)parameters requestHeaders:(NSDictionary *)headers

Parameters

URL

The URL to be added

parameters

The extra parameters

headers

The extra request headers

Availability

v1.0

Declared In

OlapicBulkRequest.h

addRequestToURL:withParameters:requestHeaders:andMethod:

Add a URL to the batch, with extra request headers and extra parameters for the query string or the body, depending on the selected method (@“POST” or @“GET”)

- (void)addRequestToURL:(NSString *)URL withParameters:(NSDictionary *)parameters requestHeaders:(NSDictionary *)headers andMethod:(NSString *)method

Parameters

URL

The URL to be added

parameters

The extra parameters

headers

The extra request headers

method

The request method (@“POST” or @“GET”)

Declared In

OlapicBulkRequest.h

getSDK

Get the OlapicSDK reference

- (OlapicSDK *)getSDK

Return Value

The OlapicSDK

Availability

v1.0

Declared In

OlapicBulkRequest.h

process:onFailure:

Start processing the batch with all the requests

- (void)process:(void ( ^ ) ( NSArray *responseObject ))success onFailure:(void ( ^ ) ( NSError *error ))failure

Parameters

success

A callback block for when the requests are done

failure

A callback block for when the connection to the bulk server fails

Declared In

OlapicBulkRequest.h