This Choreo lists the user's files. The documentation for this Google Drive resource can be found here.
The Query input can be used to search for files. More information on the query syntax that can be used with this input can be found here. When using the Query input to search for a specific file, the FileID will also be returned as a Choreo output. This can be useful when passing the FileID to the Google.Drive.Get Choreo.
Here is an example of acceptable inputs:
ClientID: {YOUR CLIENT ID}
ClientSecret: {YOUR CLIENT SECRET}
RefreshToken: {YOUR REFRESH TOKEN}
Query: title='myFile.txt'
The following is a sample of the JSON information returned by this Choreo:
{
"kind": "drive#fileList",
"etag": "\"V1Qx6tz5ah1O9YDljXSYMMcJPk4/z87_mlKD4-pZM-NmJ8nPblJDOjo\"",
"selfLink": "https://www.googleapis.com/drive/v2/files",
"items": [
{
"kind": "drive#file",
"id": "0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE",
"etag": "\"V1Qx6tz5ah1O9YDljXSYMMcJPk4/MTM1MzUwODQ1NzE5Nw\"",
"selfLink": "https://www.googleapis.com/drive/v2/files/0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE",
"alternateLink": "https://docs.google.com/spreadsheet/ccc?key=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE",
"embedLink": "https://docs.google.com/spreadsheet/ccc?key=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE&output=html&chrome=false&widget=true",
"thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE&v=903&s=AMedNnoAAAAAUK0Qk1ydG_IfXXz2oPjXZEEXO_wpsZIr&sz=s220",
"title": "Roadmap",
"mimeType": "application/vnd.google-apps.spreadsheet",
"labels": {
"starred": false,
"hidden": false,
"trashed": false,
"restricted": false,
"viewed": true
},
"createdDate": "2011-12-07T20:34:29.077Z",
"modifiedDate": "2012-11-21T14:34:17.197Z",
"modifiedByMeDate": "2012-11-21T14:34:17.197Z",
"lastViewedByMeDate": "2012-11-21T14:24:04.900Z",
"sharedWithMeDate": "2011-12-08T22:50:54.234Z",
"parents": [
],
"exportLinks": {
"application/pdf": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE&exportFormat=pdf",
"application/x-vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE&exportFormat=ods",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE&exportFormat=xlsx"
},
"userPermission": {
"kind": "drive#permission",
"etag": "\"V1Qx6tz5ah1O9YDljXSYMMcJPk4/dHLgLJWro5n5rpBfKjhKZklDJMI\"",
"id": "me",
"selfLink": "https://www.googleapis.com/drive/v2/files/0AjJo_RPJqU03dDJvaEJXSzc2cjJMSWdvV3J5bU0yRVE/permissions/me",
"role": "writer",
"type": "user"
},
"quotaBytesUsed": "0",
"ownerNames": [
"Me Myself"
],
"lastModifyingUserName": "TembooDev",
"editable": true,
"writersCanShare": true,
"appDataContents": false
},
{
"kind": "drive#file",
"id": "0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E",
"etag": "\"V1Qx6tz5ah1O9YDljXSYMMcJPk4/MTM1MzQ1NzYzMzEyOQ\"",
"selfLink": "https://www.googleapis.com/drive/v2/files/0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E",
"alternateLink": "https://docs.google.com/spreadsheet/ccc?key=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E",
"embedLink": "https://docs.google.com/spreadsheet/ccc?key=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E&output=html&chrome=false&widget=true",
"thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E&v=337&s=AMedNnoAAAAAUK0Qk9UeA7VRbKGKSu1hA4_wcDfzyNIt&sz=s220",
"title": "Temboo Stuff",
"mimeType": "application/vnd.google-apps.spreadsheet",
"labels": {
"starred": false,
"hidden": false,
"trashed": false,
"restricted": false,
"viewed": true
},
"createdDate": "2012-05-12T17:05:40.447Z",
"modifiedDate": "2012-11-21T00:27:13.129Z",
"lastViewedByMeDate": "2012-09-18T21:12:04.499Z",
"parents": [
],
"exportLinks": {
"application/pdf": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E&exportFormat=pdf",
"application/x-vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E&exportFormat=ods",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "https://docs.google.com/feeds/download/spreadsheets/Export?key=0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E&exportFormat=xlsx"
},
"userPermission": {
"kind": "drive#permission",
"etag": "\"V1Qx6tz5ah1O9YDljXSYMMcJPk4/SJgodo-MGCCFIn5bINdnsoqpljc\"",
"id": "me",
"selfLink": "https://www.googleapis.com/drive/v2/files/0AjVX1DTMDpKKdFdINnUyX291X1VZOUIwWmtGMjJXU1E/permissions/me",
"role": "reader",
"type": "user"
},
"quotaBytesUsed": "0",
"ownerNames": [
"Me Myself"
],
"lastModifyingUserName": "Me Myself",
"editable": false,
"writersCanShare": true,
"appDataContents": false
}