List shared folder items

1

How to list items from a specific folder shared with an application created by the Developer Console?

  

The problem

I'm using the googleapis on node package to get a more flexible and robust image upload and file system than Heroku's freemium options (in an Heroku app) I can only list the items of a shared folder (shared from the user to the application).

When trying to list using parameters such as: folderId , spaces or corpus the result is the same ... returns all items in all application or shared folders (except of course the "appDataFolder ")

drive.files.list({
    auth: jwtClient, // token de autenticação
    folderId: '0B3ajCOYifSJ6a1ItaXFqaVB4alU', // folder id
    fields: 'nextPageToken, files(id, name)',
    pageSize: 100
}, function (err, res) {
    if ( !!err ) {
        // Handle error
        console.error(err);
    } else {
        res.files.forEach(function (file) {
            console.log('Found file:', file.name, file.id);
        });
    }
});

Source ( post ) that I used to share folder between user and application

    
asked by anonymous 13.09.2017 / 01:41

0 answers