我看到@Cirrostratus回答了 iOS 5 Twitter Framework: Tweeting without user input and confirmation (modal view controller)它适用于推文。我该怎么改变它来发送DM呢?
答案 0 :(得分: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和收件人的推特名称。