Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get file details by id #118

Open
maksev opened this issue Oct 7, 2020 · 0 comments
Open

get file details by id #118

maksev opened this issue Oct 7, 2020 · 0 comments

Comments

@maksev
Copy link

maksev commented Oct 7, 2020

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;
});
};
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant