Tried many ways to fetch photos from Google photos with picasa webalbum and Google drive but i cant achieve the result.Please let me know how to fetch google photos alone and below coding displays only drive like Pdf docs etc but i need photos...Is there is any query i need to implement instead of files or id.The sample coding is based on Mac and there is no proper solution for iOS and everything in XML format please guide me to overcome this.
GTLRDriveQuery_FilesList *query = [GTLRDriveQuery_FilesList query];
query.fields = @"nextPageToken, files(id, name)";
query.pageSize = 10;
[self.service executeQuery:query
delegate:self
didFinishSelector:@selector(displayResultWithTicket:finishedWithObject:error:)];
- (void)displayResultWithTicket:(GTLRServiceTicket *)ticket
finishedWithObject:(GTLRDrive_FileList *)result
error:(NSError *)error
{
if (error == nil)
{
NSMutableString *output = [[NSMutableString alloc] init];
if (result.files.count > 0)
{
[output appendString:@"Files:\n"];
int count = 1;
for (GTLRDrive_File *file in result.files)
{
[FileString appendFormat:@"%@ (%@)\n", file.name, file.imageMediaMetadata];
count++;
NSLog(@"PrintFileString %@",file);
}
} else
{
[output appendString:@"No files found."];
}
self.output.text = output;
} else
{
NSMutableString *message = [[NSMutableString alloc] init];
[message appendFormat:@"Error getting presentation data: %@\n", error.localizedDescription];
[self showAlert:@"Error" message:message];
}
}