Skip to content

Commit 44f307f

Browse files
authored
1 parent d819125 commit 44f307f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drive/snippets/drive-v3/file_snippet/create_shortcut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def create_shortcut():
3535
# create drive api client
3636
service = build('drive', 'v3', credentials=creds)
3737
file_metadata = {
38-
'title': 'Project plan',
38+
'name': 'Project plan',
3939
'mimeType': 'application/vnd.google-apps.drive-sdk'
4040
}
4141

drive/snippets/drive-v3/file_snippet/upload_with_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def upload_with_conversion():
3838
service = build('drive', 'v3', credentials=creds)
3939

4040
file_metadata = {
41-
'title': 'My Report',
41+
'name': 'My Report',
4242
'mimeType': 'application/vnd.google-apps.spreadsheet'
4343
}
4444
media = MediaFileUpload('report.csv', mimetype='text/csv',

0 commit comments

Comments
 (0)