Skip to content

get file details by id #118

Description

@maksev

Hi thanks for the project how about to add support to get file details by id
https://www.googleapis.com/drive/v3/files/fileId
something like that:

`/**

var request = {
// spaces: 'drive',
fields:
fields || 'id,kind,name,mimeType,parents,hasThumbnail,webViewLink,folderColorRgb'
};

// If pageToken is set, then request the next page of file list
if (pageToken) {
request.pageToken = pageToken;
}

// If parent folder is set, list files under that folder
if (fileId !== null) {
request.fileId = fileId;
}

return _this.service.files
.getAsync(request)
.then(function (response) {
// debug('Found %s files on folder %s', response.files.length, folderId);
response.fileId = fileId;
return response;
})
.catch(function (err) {
debug('Error listing files ', err.message);
throw err;
});
};
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions