We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765e065 commit e749a8fCopy full SHA for e749a8f
README.md
@@ -30,11 +30,11 @@ files.items.each do |file|
30
end
31
32
# Upload a file
33
-metadata = Google::Apis::DriveV3::File.new(title: 'My document')
34
-metadata = drive.insert_file(metadata, upload_source: 'test.txt', content_type: 'text/plain')
+metadata = Google::Apis::DriveV3::File.new(name: 'test.txt')
+metadata = drive.create_file(metadata, upload_source: '/tmp/test.txt', content_type: 'text/plain')
35
36
# Download a file
37
-drive.get_file(metadata.id, download_dest: '/tmp/myfile.txt')
+drive.get_file(metadata.id, download_dest: '/tmp/downloaded-test.txt')
38
```
39
40
Following is another example using the Content API (Google Merchant Center), provided by the `google-apis-content_v2` gem:
0 commit comments