google-api-nodejs-client: google.drive.files.list v3 parameters ignored?

Hey!

I’m trying to get files from my google drive, but looks like the v3 parameters are completely ignored, even if I send a ‘pageSize’ of 1, I always get 100 results. When I specify fields to get additional data from the files I always get the same 4 fields: kind, id, name and mimeType.

Simple call:

const gdrive = google.drive('v3');

gdrive.files.list({
    auth: authClient,
    pageSize: 1
}

Using googleapis 26.0.1 (also tried with 25).

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Greetings! Please remove google-auth-library from your package.json, run ‘npm install’, and try again 😃