pyDrive를 사용하여 Google 드라이브에 파일을 업로드하고 있습니다. 특정 폴더에 파일을 업로드 할 수 있습니다.업로드 된 파일을받는 사람에게 Google 드라이브에 메모를 보내는 방법은 무엇인가요?
는from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
file1 = drive.CreateFile({'title': 'myfile.txt', 'parents': [{"kind": "drive#fileLink","id": {FOLDER_ID}}]})
file1.SetContentFile('myfile.txt')
file1.Upload()
는
어떻게 다른 사람과 업로드 된 파일을 공유하고 pyDrive 또는 공식 Google 드라이브 REST API를 사용하여받는 사람 중 하나에 메모를 보낼 수 ?
나는 이것이 무엇을 찾고 있는지 믿습니다 : https://developers.google.com/drive/v3/web/manage-sharing 그것은 파이썬에서도 권한 설정을위한 코드를 가지고 있습니다. –