Inherits from NSObject
Declared in BVSettings.h
BVSettings.m

Overview

BVSettings is a singleton object which contains credentials common to all API requests.

All BVGet, BVPost and BVMediaPost requests will use the credentials stored in BVSettings.

Tasks

Properties

appName

The name of the application. For example: “Test Shopping App”

@property (nonatomic, copy) NSString *appName

Declared In

BVSettings.h

clientId

The client’s identifier. This should be the same as the <client_name> in the baseURL.

@property (nonatomic, copy) NSString *clientId

Declared In

BVSettings.h

passKey

This is the passkey assigned to the customer.

@property (nonatomic, copy) NSString *passKey

Declared In

BVSettings.h

staging

Boolean indicating whether this request should go to staging (true) or production (false). Default is production (false).

@property (nonatomic, assign) BOOL staging

Declared In

BVSettings.h

timeout

Network timeout in seconds. Default is 60 seconds. Note that iOS may set a minimum timeout of 240 seconds for post requests.

@property (nonatomic, assign) float timeout

Declared In

BVSettings.h

Class Methods

instance

Static accessor method.

+ (BVSettings *)instance

Declared In

BVSettings.h