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

gapi.client.drive.drives.list returning an empty array. #927

Open
arunkumar413 opened this issue Aug 25, 2023 · 0 comments
Open

gapi.client.drive.drives.list returning an empty array. #927

arunkumar413 opened this issue Aug 25, 2023 · 0 comments

Comments

@arunkumar413
Copy link

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

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

2 participants
@arunkumar413 and others