jjzjj

myRequestData

全部标签

ios - 通过oauth将图像发送到twitter

我可以使用oauth成功登录Twitter。现在我需要发布带有状态的图像。为此,我实现了以下......-(void)shareontw{NSString*postUrl=@"https://api.twitter.com/1.1/statuses/update_with_media.json";NSMutableURLRequest*req=[NSMutableURLRequestrequestWithURL:[NSURLURLWithString:postUrl]];[reqsetValue:[oAuthoAuthHeaderForMethod:@"POST"andUrl:post