Inherits from NSMutableURLRequest
Declared in UPURLRequest.h
UPURLRequest.m

Overview

The base URLRequest object that contains the necessary headers for OAuth.

Class Methods

deleteRequestWithEndpoint:params:

Creates a new DELETE request.

+ (UPURLRequest *)deleteRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params

Parameters

endpoint

The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)

params

A dictionary of paramters to send with the request.

Discussion

Creates a new DELETE request.

Declared In

UPURLRequest.h

getRequestWithEndpoint:params:

Creates a new GET request.

+ (UPURLRequest *)getRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params

Parameters

endpoint

The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)

params

A dictionary of paramters to send with the request.

Discussion

Creates a new GET request.

Declared In

UPURLRequest.h

postRequestWithEndpoint:params:

Creates a new POST request.

+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params

Parameters

endpoint

The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)

params

A dictionary of paramters to send with the request.

Discussion

Creates a new POST request.

Declared In

UPURLRequest.h

postRequestWithEndpoint:params:image:

Creates a new POST request with an additional image object.

+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params image:(UPImage *)image

Parameters

endpoint

The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)

params

A dictionary of paramters to send with the request.

image

An image to post along with the params.

Discussion

Creates a new POST request with an additional image object.

Declared In

UPURLRequest.h