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;
131 - (BOOL)getListAlbum;
139 - (BOOL)getListPhotoWithParams:(NSMutableDictionary *)params;
147 - (BOOL)addShareWithParams:(NSMutableDictionary *)params;
156 - (BOOL)uploadPicWithParams:(NSMutableDictionary *)params;
164 - (BOOL)addAlbumWithParams:(NSMutableDictionary *)params;
171 - (BOOL)checkPageFansWithParams:(NSMutableDictionary *)params;
179 - (BOOL)addOneBlogWithParams:(NSMutableDictionary *)params;
187 - (BOOL)addTopicWithParams:(NSMutableDictionary *)params;
195 - (BOOL)setUserHeadpic:(NSMutableDictionary *)params;
205 - (BOOL)setUserHeadpic:(NSMutableDictionary *)params andViewController:(UIViewController **)viewController;
219 - (BOOL)getVipRichInfo;
226 - (BOOL)matchNickTips:(NSMutableDictionary *)params;
233 - (BOOL)getIntimateFriends:(NSMutableDictionary *)params;
241 - (BOOL)sendStory:(NSMutableDictionary *)params friendList:(NSArray *)fopenIdArray;
248 - (BOOL)cancel:(
id)userData;
269 - (void)tencentDidNotLogin:(BOOL)cancelled;
280 - (NSArray *)getAuthorizedPermissions:(NSArray *)permissions withExtraParams:(NSDictionary *)extraParams;
305 - (BOOL)tencentNeedPerformIncrAuth:(
TencentOAuth *)tencentOAuth withPermissions:(NSArray *)permissions;
313 - (BOOL)tencentNeedPerformReAuth:(
TencentOAuth *)tencentOAuth;
334 - (void)getUserInfoResponse:(
APIResponse*) response;
342 - (void)getListAlbumResponse:(
APIResponse*) response;
350 - (void)getListPhotoResponse:(
APIResponse*) response;
358 - (void)checkPageFansResponse:(
APIResponse*) response;
391 - (void)addOneBlogResponse:(
APIResponse*) response;
407 - (void)setUserHeadpicResponse:(
APIResponse*) response;
415 - (void)getVipInfoResponse:(
APIResponse*) response;
421 - (void)getVipRichInfoResponse:(
APIResponse*) response;
429 - (void)matchNickTipsResponse:(
APIResponse*) response;
437 - (void)getIntimateFriendsResponse:(
APIResponse*) response;
453 - (void)tencentOAuth:(
TencentOAuth *)tencentOAuth didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite userData:(
id)userData;
461 - (void)tencentOAuth:(
TencentOAuth *)tencentOAuth doCloseViewController:(UIViewController *)viewController;