摘要:
也是采用两种方法,先放出第一种方法//https://upload.api.weibo.com/2/statuses/upload.json //https://api.weibo.com/2/statuses/update.json NSUserDefaults *info = [NSUserDefaultsstandardUserDefaults]; NSData *imageData = UIImagePNGRepresentation([UIImageimageNamed:@"auth_header.png"]); NSURL *url = [[NSURLalloc 阅读全文
摘要:
这里以新浪的为例子进行说明,后面会陆续添加;这里同时提供两种方式,一种是通过ASIFormData的方式来完成NSURL *url = [[NSURLalloc] initWithString:@"https://api.weibo.com/2/statuses/update.json"];// statuses/upload ASIFormDataRequest *request = [[ASIFormDataRequestalloc] initWithURL:url]; NSUserDefaults *info = [NSUserDefaultsstandardUser 阅读全文