大家好,我正在尝试通过我的应用回复特定的推文。这是代码:
NSMutableDictionary *parameters = [[NSMutableDictionary alloc] init];
[parameters setObject:[[myAccount.currentTweet objectForKey:@"id"]stringValue]
forKey:@"in_reply_to_status_id_str"];
SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeTwitter
requestMethod:SLRequestMethodPOST URL:[NSURL
URLWithString:@"https://api.twitter.com/1.1/statuses/update.json"]
parameters:parameters];`
这是成功发布回复后 Twitter API JSON 返回给我的内容
"id_str" = 337918014110433281;"in_reply_to_screen_name" = geochirpr;"in_reply_to_status_id" = "<null>";"in_reply_to_status_id_str" = "<null>";"in_reply_to_user_id" = 1378947649;"in_reply_to_user_id_str" = 1378947649;
正如您在回复“in_reply_to_user_id”时看到的那样,已填充但有趣的是,“in_reply_to_status_id”仍然为空。即使我传递了“in_reply_to_status_id”参数,我也包含了@username。还是不行!!!
救命啊!!!