Permalink
Browse files

add first helper methods to get access token

  • Loading branch information...
trivektor committed Apr 3, 2013
1 parent 4f5e66c commit bce7c985f93f0f06eb4385982bf46bc683b186b1
Showing with 13 additions and 0 deletions.
  1. +3 −0 Gitos-iPad/AppHelper.h
  2. +10 −0 Gitos-iPad/AppHelper.m
View
@@ -10,4 +10,7 @@
@interface AppHelper : NSObject
++ (NSString *)getAccessToken;
++ (NSDictionary *)getAccessTokenParams;
+
@end
View
@@ -10,4 +10,14 @@
@implementation AppHelper
++ (NSString *)getAccessToken
+{
+ return [SSKeychain passwordForService:@"access_token" account:@"gitos"];
+}
+
++ (NSDictionary *)getAccessTokenParams
+{
+ return [NSDictionary dictionaryWithObjectsAndKeys:[self getAccessToken], @"access_token", nil];
+}
+
@end

0 comments on commit bce7c98

Please sign in to comment.