2013-07-11 123 views

回答

0

修補現有文件與新的文件夾:

PATCH https://www.googleapis.com/drive/v2/files/<fileId> 
Authorization: Bearer <accessToken> 

{ "parents": [{ "id": "<new folder's id>" }] } 

https://developers.google.com/drive/v2/reference/files/patch

+0

1)該文件是在不同的帳戶,所以這會導致身份驗證問題 2)我們需要複製它,而不是移動它 – ggwarpig

0

文件看看:copy
需要authorization

POST https://www.googleapis.com/drive/v2/files/fileId/copy 

更改路徑參數fileId字符串ID要複製的文件。 Try it here

相關問題