Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinHsieh committed Aug 24, 2023
1 parent a301db4 commit a85004e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Sharely/share_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ def callback(request_id, response, exception):

# See method details in:
# https://developers.google.com/resources/api-libraries/documentation/drive/v3/python/latest/drive_v3.permissions.html
# batch.add(service.permissions().create(fileId=file_id,
# emailMessage=email_message,
# body=user_permission,
# fields='id',))
#
# batch.execute()
batch.add(service.permissions().create(fileId=file_id,
emailMessage=email_message,
body=user_permission,
fields='id',))

batch.execute()

batch = service.new_batch_http_request(callback=callback)

user_permission = {'type': 'user',
'role': 'reader',
Expand Down

0 comments on commit a85004e

Please sign in to comment.