我正在使用 Google 数据联系人 API 来获取用户的照片。但是,返回的照片似乎分辨率较低。有可能获得更高分辨率的照片吗?下面是我用来获取照片的代码:
**NSURL *imageURL = [[contact photoLink] URL];
GDataServiceGoogleContact *service = [self contactService];
NSMutableURLRequest *request = [service requestForURL:imageURL
ETag:nil
httpMethod:nil];
[request setValue:@"image/*" forHTTPHeaderField:@"Accept"];
GTMHTTPFetcher *fetcher = [GTMHTTPFetcher fetcherWithRequest:request];
NSLog(@"URLRequest %@",request);
fetcher.retryEnabled = YES;
fetcher.maxRetryInterval = 0.3;
[fetcher setAuthorizer:[service authorizer]];
[fetcher beginFetchWithDelegate:self
didFinishSelector:@selector(imageFetcher:finishedWithData:error:)];**