ML_Twitter Class Reference

Inherits from NSObject
Declared in ML_Twitter.h

Overview

A simple interface for interacting with the Twitter REST API, automating sign-in and OAuth signing of requests against the API.

– authorizeWithSuccess:failure:cancel:

Displays an auth dialog and populates the authToken, authTokenSecret, userId, and screenName properties if the Twitter user grants permission to the application.

- (void)authorizeWithSuccess:(void ( ^ ) ( void ))success failure:(void ( ^ ) ( NSError *__nullable error ))failure cancel:(void ( ^ ) ( void ))cancelBlock

Parameters

success

Invoked upon successful authorization.

failure

Invoked upon an error occurring in the authorization process.

cancelBlock

Invoked when the user cancels authorization.

Declared In

ML_Twitter.h

– signRequest:

Adds a 3-legged OAuth signature to an NSMutableURLRequest based upon the properties set for the Twitter object. Use this function to sign requests being made to the Twitter API.

- (void)signRequest:(NSMutableURLRequest *)request

Parameters

request

The request to be sign.

Declared In

ML_Twitter.h