Created
December 14, 2012 18:59
-
-
Save ethanmick/4287692 to your computer and use it in GitHub Desktop.
Link social account using iOS Framework for CloudMine
This file contains 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
// In MyLoginViewController.m | |
- (IBAction)loginWithSocial { | |
[_user loginWithSocialNetwork:CMSocialNetworkGithub viewController:self params:@{@"scope" : @"gist"} callback:^(CMUserAccountResult resultCode, NSArray *messages) { | |
if (resultCode == CMUserAccountLoginSucceeded) { | |
NSLog(@"We have successfully logged in!"); | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment