gapi.client.drive.drives.list returning an empty array.
arunkumar413 opened this issue · 0 comments
arunkumar413 commented
I'm trying to access the list of drives, files and folders in the drive but the below snippet is returning an empty array. Could you please help me.
` let res = await gapi.client.drive.drives.list({"pageSize": 100}) `
Discovery does I used are:
export const DISCOVERY_DOC = ['https://sheets.googleapis.com/$discovery/rest?version=v4',
"https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"];
Scopes used:
https://www.googleapis.com/auth/spreadsheets;
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly
Thank you,
Arun