[STI10001] Twitter如何获取TokenSecret
问题描述
Twitter如何获取TokenSecret
解决方案
Twitter获取access_token_secret可通过以下方式
#import <TwitterKit/TwitterKit.h>
[[UMSocialManager defaultManager] authWithPlatform:platformType currentViewController:self completion:^(id result, NSError *error) {
if (result) {
if ([result isKindOfClass:[UMSocialAuthResponse class]]) {
UMSocialAuthResponse *resp = result;
TWTRSession *session = resp.originalResponse;
NSLog(@"authTokenSecret = %@", session.authTokenSecret);
}
}
}];