Context
I am creating a php web application that is supposed to upload files to Google Drive, which belongs to the user (call him Bob). I used a Google Drive service account (call service@gmail.com ).
Bob created a folder (“downloads”) on his Google Drive and shared it with service@gmail.com.
A service account ( service@gmail.com ) can use the Drive API to display files in this shared download folder and upload files to it. Uploaded files are also displayed on Bob Google Drive. So far so good.
Problem
Owner files downloaded service@gmail.com , is service@gmail.com , as one would expect. This has the following consequences:
- Since service@gmail.com owns the downloaded files, they take account quota into account. However, Bob has bought more space for his Google Drive and wants the downloaded files to count against his quota so that there is no free space in the service account.
- When a file previously uploaded using service@gmail.com is deleted (via Bob) from the shared download folder, several things happen:
- The deleted file does not appear in the uploads folder for any user.
- Bob can still see the deleted file in his "All Items" view.
- - , API, (.. ).
- API , .
?
()? :
. ? ! -, . -, @developer.gserviceaccount.com, Bob - @gmail.com. doc :
Google Apps: - Google Doc. Google Apps Premier, Government Education (, PDF ).
Consumer Drive: (, PDF ).
- - Bob. , , OAuth . , .
- , . , ...
, !