跳转到主要内容
PRODUCT DOCUMENTS

快速找到所需文档,高效完成接入与排障

浏览产品文档与友盟 Skill,展开目录并阅读正文。

[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);

      }
  }
}];