I want to get drive file of user (metadata, content, downloadUrl) not created by my application with access token have only drive.file scope. Can anyone have a solution for this one? Thank you.
gapi.client.load('drive', 'v3', () => {
gapi.auth.setToken({
access_token: user.services.google.accessToken,
expires_in: user.services.google.expiresAt,
});
gapi.client.drive.files.get({
fileId: file.id,
fields: 'webContentLink',
}).then( test => {
console.log('test', test);
})
});