NSMeetUpO2, Makes painless the O2Auth authorization process for your iOS apps on the Meetup.com API.
==========
Create a new consumer to access to the Meetup.com API. Is very important you remember the Redirect URI, because thanks to that we will be able to acccess to the access_token, after a user authorizes your app.
Once you create the consumer, you should see something like this in meetup.com
You should register the URI redirect of your consumer app in Meetup.com as one of the URL Types of your iOS Project in xCode.
Add a single line in the method openURL: in your app delegate, NSMeetUpO2 will do the rest of the magic :)
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
[MUOAuthManager handleOpenURL:url];
return YES;
}
The library once obtains the access token send the kNotificationDidLogin
notification and leaves the obtained access_token in NSUserDefaults, using the @"access_token"
key.
==========
Problems? Open an issue in this project and I'll be happy to help.
Questions? Ping me on Twitter (@rodchile) or my email (rod at rodrigogarcia.net)