Created
May 15, 2012 23:00
-
-
Save brettkelly/2705822 to your computer and use it in GitHub Desktop.
ECAppDelegate.m modified to include Evernote OAuth configuration and initialization
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; | |
// Override point for customization after application launch. | |
self.viewController = [[[ECViewController alloc] initWithNibName:@"ECViewController" bundle:nil] autorelease]; | |
self.window.rootViewController = self.viewController; | |
[self.window makeKeyAndVisible]; | |
// Set up Evernote OAuth | |
NSString *EVERNOTE_HOST = @"sandbox.evernote.com"; | |
NSString *CONSUMER_KEY = @"your-key"; | |
NSString *CONSUMER_SECRET = @"your-secret"; | |
[EvernoteSession setSharedSessionHost:EVERNOTE_HOST | |
consumerKey:CONSUMER_KEY | |
consumerSecret:CONSUMER_SECRET]; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment