Skip to content

Instantly share code, notes, and snippets.

@fernyb
Created February 15, 2011 03:08
Show Gist options
  • Save fernyb/827033 to your computer and use it in GitHub Desktop.
Save fernyb/827033 to your computer and use it in GitHub Desktop.
Provide the callback url by the delegate and make sure autoStart is NO
NSDictionary *credentials = [NSDictionary dictionaryWithObjectsAndKeys:
consumerKey, kMPOAuthCredentialConsumerKey,
consumerSecret, kMPOAuthCredentialConsumerSecret,
nil];
_oauthAPI = [[MPOAuthAPI alloc] initWithCredentials:credentials
authenticationURL:[NSURL URLWithString:@"https://api.login.yahoo.com/oauth/v2/"]
andBaseURL:[NSURL URLWithString:@"https://api.login.yahoo.com/"]
autoStart:NO];
[(MPOAuthAuthenticationMethodOAuth *)[_oauthAPI authenticationMethod] setDelegate:self];
[_oauthAPI authenticate];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment