Inherits from NSObject
Declared in GHKAPIRequest.h
GHKAPIRequest.m

Overview

API request class

Properties

HTTPMethod

@property (nonatomic, strong) NSString *HTTPMethod

Declared In

GHKAPIRequest.h

JSONObject

@property (nonatomic, strong) id JSONObject

Declared In

GHKAPIRequest.h

URL

@property (nonatomic, strong) NSURL *URL

Declared In

GHKAPIRequest.h

accessToken

@property (nonatomic, strong) NSString *accessToken

Declared In

GHKAPIRequest.h

itemClass

@property (nonatomic, readonly) Class itemClass

Declared In

GHKAPIRequest.h

requireAuthentication

@property (nonatomic, readonly) BOOL requireAuthentication

Declared In

GHKAPIRequest.h

Class Methods

requestWithURL:

+ (GHKAPIRequest *)requestWithURL:(NSURL *)URL

Declared In

GHKAPIRequest.h

requestWithURL:HTTPMethod:

+ (GHKAPIRequest *)requestWithURL:(NSURL *)URL HTTPMethod:(NSString *)HTTPMethod

Declared In

GHKAPIRequest.h

requestWithURL:HTTPMethod:JSONObject:

+ (GHKAPIRequest *)requestWithURL:(NSURL *)URL HTTPMethod:(NSString *)HTTPMethod JSONObject:(id)JSONObject

Declared In

GHKAPIRequest.h

Instance Methods

createURLRequest:

- (NSURLRequest *)createURLRequest:(NSError **)error

Declared In

GHKAPIRequest.h

initWithURL:HTTPMethod:JSONObject:

- (id)initWithURL:(NSURL *)URL HTTPMethod:(NSString *)HTTPMethod JSONObject:(id)JSONObject

Declared In

GHKAPIRequest.h

isExpectedStatusCode:

- (BOOL)isExpectedStatusCode:(NSInteger)statusCode

Declared In

GHKAPIRequest.h