aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-08 21:00:24 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-08 21:00:24 -0700
commit7d8971fdf12dd9633ead4b07d141f773a80f50e9 (patch)
tree8b38e7e52e6d36a01e6229d71dab686c2631ea3b /example
parent89801946f05774d3037b15f11b6a5d249c776804 (diff)
Fixed Mac OAuth 2.0 example
Diffstat (limited to 'example')
-rw-r--r--example/mac/macExample/macExample/AppDelegate.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/example/mac/macExample/macExample/AppDelegate.m b/example/mac/macExample/macExample/AppDelegate.m
index 8cf8e858..5081f8a5 100644
--- a/example/mac/macExample/macExample/AppDelegate.m
+++ b/example/mac/macExample/macExample/AppDelegate.m
@@ -9,8 +9,8 @@
#import "AppDelegate.h"
#import <MailCore/MailCore.h>
-#import <GTMOAuth2/GTMOAuth2WindowController.h>
-#import <GTMOAuth2/GTMOAuth2SignIn.h>
+#import "GTMOAuth2WindowController.h"
+#import "GTMOAuth2SignIn.h"
#import "MCTMsgListViewController.h"
#import "FXKeychain.h"
@@ -94,11 +94,11 @@ finishedRefreshWithFetcher:(GTMHTTPFetcher *)fetcher
// Authentication failed
} else {
// Authentication succeeded
- [self retrieveAccessToken:auth];
+ [self loginWithAuth:auth];
}
}
-- (void) retrieveAccessToken:(GTMOAuth2Authentication *)auth
+- (void) loginWithAuth:(GTMOAuth2Authentication *)auth
{
self.login = [auth userEmail];
self.oauth2Token = [auth accessToken];