Visitar URL original
gapi.client.drive.drives.list returning an empty array. · Issue #927 · google/google-api-javascript-client · GitHub
Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

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

Description

@arunkumar413

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions