Instance Method

preparedURLRequest

Returns an authorized URL request that can be sent using an NSURLConnection object.

Declaration

- (NSURLRequest *)preparedURLRequest;

Return Value

An OAuth-compatible NSURLRequest object that allows an app to act on behalf of the user, while keeping the user’s password private. The NSURLRequest is signed as OAuth1 by default, or OAuth2 by adding the appropriate token based on the user’s account.

Discussion

Use this method to modify your request before sending. By setting the account correctly, this method will automatically add any necessary tokens.

See Also

Getting the Request Details

requestMethod

The method to use for this request.

SLRequestMethod

Indicates the request method used in the request.

URL

The destination URL for this request.

parameters

The parameters for this request.