0

我在 iOS 5 Twitter 框架上看到 @Cirrostratus 的回答 :Tweeting without user input and Confirm (modal view controller),它非常适合推文。我将如何更改此设置以发送 DM?

4

1 回答 1

0

知道了:

    NSString *dmString = @"d @RecipientTwitterName ";
    NSString *statusString = [dmString stringByAppendingString:stringForTweet];

   postRequest = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@"http://api.twitter.com/1/statuses/update.json"]
                                     parameters:[NSDictionary dictionaryWithObject:statusString forKey:@"status"]
                                  requestMethod:TWRequestMethodPOST];

只需在前面加上 d 和收件人的 Twitter 名称。

于 2012-08-14T01:39:31.543 回答