Unable to copy file accessible only to me

The user shared a link with me (only shared me ......... llama@bowlcut.com ). I am trying to copy a file, but I get a "File not found" error message.

 def copy_file(service, origin_file_id, copy_title): try: print service.files().copy(fileId=origin_file_id, body={'title': copy_title}).execute() except errors.HttpError, error: print 'An error occurred: %s' % error 

If the user changes the sharing policy for sharing with everyone and creates a link (the file number does not change), and I re-run it, I can copy it. Why can't I copy a file that someone is sharing with me?

+5
source share
1 answer

The correct answer is to make sure the user is logged in.

0
source

Source: https://habr.com/ru/post/1210381/


All Articles