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 7f31e8d commit 5bdcf5c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Sharely/share_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ 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 = service.new_batch_http_request(callback=callback)
# 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 5bdcf5c

Please sign in to comment.