Reputation: 143
I'm successfully creating files in drive using my drive app and mimeType : 'application/vnd.google-apps.drive-sdk'. As per the readtime-tasks example, I can do realtime collaboration on a file, and also see these files listed in Drive.
However, from my app, I'm unable to get a list of only the files created by my app.
gapi.client.request({
'path' : '/drive/v2/files',
'method' : 'GET',
'params' : {
q : "mimeType='application/vnd.google-apps.drive-sdk'"
}
}).execute(onComplete);
I'm using the following scopes:
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.install
Many thanks.
Upvotes: 0
Views: 114
Reputation:
I would like to tell what your mime-type actually is. I have discovered that application/vnd.google-apps.drive-sdk
is actually promoted into application/vnd.google-apps.drive-sdk.APP_ID (the first part of your CLIENT-ID) by the google utils.
Upvotes: 0
Reputation: 46844
The key "application/vnd.google-apps.drive-sdk" is used to create shortcut files, but the eventual MIME Type is specific to your app. Use the file.get "try it" to see what the specific MIME type actually is.
Upvotes: 1