wavecos / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

GTLQueryDrive +queryForFilesList : @"mimeType='application/vnd.google-apps.folder'"not returning folder list #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attempting to query for folders for 
mimeType='application/vnd.google-apps.folder' doesn't provide any results, even 
though no error is received.

What steps will reproduce the problem?
1. Set up a new GTLQueryDrive object GTLQueryDrive *query = [GTLQueryDrive 
object];
2. Set the q parameter: query.q = 
@"mimeType='application/vnd.google-apps.folder'";
3. Execute query and NSLog the result.

What is the expected output? What do you see instead?
I expect to get a GTLDriveFilesList populated with all the folders in my Drive 
account. Instead I get a GTLDriveFilesList that only has two properties, the 
etag and kind.  This is the console output:

GTLDriveFileList 0x107d5020: {kind:"drive#fileList" 
etag:""Q5ElJByAJoL0etObruYVPRipH1k/vyGp6PvFo4RvsFtPoIWeCReyIC8""}

What version of the product are you using? On what operating system?
Google API Client Library for iOS and the Google Drive wrappers. This is on the 
iOS 6.1 simulator.

Please provide any additional information below.

Original issue reported on code.google.com by jus...@amberson.net on 18 Aug 2013 at 3:01

GoogleCodeExporter commented 9 years ago
I'm sorry, I was using the wrong permissions. Used kGTLAuthScopeDriveFile and 
should be using kGTLAuthScopeDrive. Issue closed.

Original comment by jus...@amberson.net on 18 Aug 2013 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by thomasvl@google.com on 19 Aug 2013 at 2:07