Created
February 15, 2011 03:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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