10 #import <UIKit/UIKit.h>
22 NSMutableDictionary* _apiRequests;
23 NSString* _accessToken;
24 NSDate* _expirationDate;
25 id<TencentSessionDelegate> _sessionDelegate;
26 NSString* _localAppId;
28 NSString* _redirectURI;
29 NSArray* _permissions;
33 @property(nonatomic, copy) NSString* accessToken;
36 @property(nonatomic, copy) NSDate* expirationDate;
39 @property(nonatomic, assign) id<TencentSessionDelegate> sessionDelegate;
42 @property(nonatomic, copy) NSString* localAppId;
45 @property(nonatomic, copy) NSString* openId;
48 @property(nonatomic, copy) NSString* redirectURI;
51 @property(nonatomic, retain) NSString* appId;
59 - (id)initWithAppId:(NSString *)appId
67 - (BOOL)authorize:(NSArray *)permissions
68 inSafari:(BOOL)bInSafari;
76 - (BOOL)authorize:(NSArray *)permissions
77 localAppId:(NSString *)localAppId
78 inSafari:(BOOL)bInSafari;
85 - (BOOL)incrAuthWithPermissions:(NSArray *)permissions;
92 - (BOOL)reauthorizeWithPermissions:(NSArray *)permissions;
99 - (BOOL)handleOpenURL:(NSURL *)url;
106 + (BOOL)HandleOpenURL:(NSURL *)url;
118 - (BOOL)isSessionValid;
134 - (BOOL)getListAlbum;
142 - (BOOL)getListPhotoWithParams:(NSMutableDictionary *)params;
150 - (BOOL)addShareWithParams:(NSMutableDictionary *)params;
159 - (BOOL)uploadPicWithParams:(NSMutableDictionary *)params;
167 - (BOOL)addAlbumWithParams:(NSMutableDictionary *)params;
174 - (BOOL)checkPageFansWithParams:(NSMutableDictionary *)params;
182 - (BOOL)addOneBlogWithParams:(NSMutableDictionary *)params;
190 - (BOOL)addTopicWithParams:(NSMutableDictionary *)params;
198 - (BOOL)setUserHeadpic:(NSMutableDictionary *)params;
208 - (BOOL)setUserHeadpic:(NSMutableDictionary *)params andViewController:(UIViewController **)viewController;
222 - (BOOL)getVipRichInfo;
229 - (BOOL)matchNickTips:(NSMutableDictionary *)params;
236 - (BOOL)getIntimateFriends:(NSMutableDictionary *)params;
243 - (BOOL)cancel:(
id)userData;
265 - (void)tencentDidNotLogin:(BOOL)cancelled;
276 - (NSArray *)getAuthorizedPermissions:(NSArray *)permissions withExtraParams:(NSDictionary *)extraParams;
301 - (BOOL)tencentNeedPerformIncrAuth:(
TencentOAuth *)tencentOAuth withPermissions:(NSArray *)permissions;
309 - (BOOL)tencentNeedPerformReAuth:(
TencentOAuth *)tencentOAuth;
330 - (void)getUserInfoResponse:(
APIResponse*) response;
338 - (void)getListAlbumResponse:(
APIResponse*) response;
346 - (void)getListPhotoResponse:(
APIResponse*) response;
354 - (void)checkPageFansResponse:(
APIResponse*) response;
387 - (void)addOneBlogResponse:(
APIResponse*) response;
403 - (void)setUserHeadpicResponse:(
APIResponse*) response;
411 - (void)getVipInfoResponse:(
APIResponse*) response;
417 - (void)getVipRichInfoResponse:(
APIResponse*) response;
425 - (void)matchNickTipsResponse:(
APIResponse*) response;
433 - (void)getIntimateFriendsResponse:(
APIResponse*) response;
444 - (void)tencentOAuth:(
TencentOAuth *)tencentOAuth didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite userData:(
id)userData;
450 - (void)tencentOAuth:(
TencentOAuth *)tencentOAuth doCloseViewController:(UIViewController *)viewController;