ios - 如何获取推文 ID ....?我正在通过 fabric 使用 Twitter SDK

标签 ios swift twitter-oauth

Twitter.sharedInstance().APIClient.loadTweetWithID(TweetID,
    completion:<#TWTRLoadTweetCompletion##(TWTRTweet?, NSError?) -> Void#>)

如何使用get tweet ID获取推文信息?

最佳答案

试试这段代码。

TWTRLogInButton* logInButton =  [TWTRLogInButton
                                 buttonWithLogInCompletion:
                                 ^(TWTRSession* session, NSError* error) {
                                     if (session) {
                                         NSLog(@"signed in as %@", [session userID]);
                                           } else {
                                         NSLog(@"error: %@", [error localizedDescription]);
                                     }
                                 }];
logInButton.center = self.view.center;
[self.view addSubview:logInButton];

关于ios - 如何获取推文 ID ....?我正在通过 fabric 使用 Twitter SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31586384/

相关文章:

iphone - 使用未解析的标识符 'Singleton' Swift 3

blackberry - 打包 Blackberry OAuth 应用程序抛出错误

ios - 如何在没有 "MFMessageComposeViewController "的情况下以编程方式在 iPhone 上发送短信?

ios - 使用 NSAttributedString 添加后如何从 UITextView 检索照片?

iphone - 为什么在使用全局调度队列时不调用 NSURLConnection 委托(delegate)方法?

xcode - 如何传入一个字符串来调用 Swift 子类中的操作

ios - 如何使用 SwiftUI 创建带有刻度线的 slider ?

r - R 中 twitteR 的 SSL 证书失败

javascript - 在带有回调的 Javascript 中循环

ios - KVO - UIScrollView.contentSize 误报?