Skip to content

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

Open
@arunkumar413

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

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