Skip to content

Instantly share code, notes, and snippets.

@brspurri
brspurri / gist:1878297
Created February 21, 2012 19:21 — forked from jverkoey/gist:1866500
Nimbus OAuth
typedef enum {
NIOpenAuthenticationStateFetchingToken,
NIOpenAuthenticationStateAuthorized,
} NIOpenAuthenticationState;
// Step 1: Create an auth object that will capture the token.
self.auth = [[[NISoundCloudOpenAuthenticator alloc]
initWithClientIdentifier:@"xxxxxx"
clientSecret:@"xxxxxx"] autorelease];