Skip to content

Commit

Permalink
fix(readme): Update DriveV3 example to use correct attributes
Browse files Browse the repository at this point in the history
This DriveV3 example attempts to call outdated V2 attributes that no
longer exist in V3.

- `Google::Apis::DriveV3::FileList#items` no longer exists in V3; it's
been renamed to `files`.
- `Google::Apis::DriveV3::File#title` no longer exists in V3; it's been
  renamed to `name`.
  • Loading branch information
garyhtou committed Nov 9, 2024
1 parent 61779ce commit 2a7ce68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ drive.authorization = ... # See Googleauth or Signet libraries

# Search for files in Drive (first page only)
files = drive.list_files(q: "title contains 'finances'")
files.items.each do |file|
puts file.title
files.files.each do |file|
puts file.name
end

# Upload a file
Expand Down

0 comments on commit 2a7ce68

Please sign in to comment.