GdataContact获取的用户照片分辨率较低

时间:2015-04-21 01:27:32

标签: ios objective-c google-contacts google-shared-contacts google-profiles-api

我正在使用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:)];**

0 个答案:

没有答案