[Python] Changing access option of a file using Google Drive API

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    Is it possible to change the access option of a file in Drive from 'Restricted' to 'Anyone with the Link' using Google Drive API?

    filename= 'filename' file_metadata = { 'name' : filename, 'parents' : [PARENT_FOLDER_ID], 'type':'anyone', 'role':'reader' }

    I have tried tweaking the 'type' parameter however that doesn't seem to be related to the issue.

    Continue reading...

Compartilhe esta Página