我的要求是將用戶在運行期間選擇的單個文件上傳到Google驅動器。我從用戶那裏獲取電子郵件ID和密碼。怎麼做?。如果我有任何其他要求從用戶?有沒有可行的解決方案?以文件格式上傳文件到GOOGLE DRIVE
1
A
回答
2
您可以使用谷歌驅動器SDK/API,這是相當簡單的東西,如果你通過文件讀取,
https://developers.google.com/drive/
https://developers.google.com/drive/manage-uploads
有一個.NET API可供下載,雖然它的在測試版中,我用它沒有問題。
0
DocumentsService爲myService =新DocumentsService( 「應用程序名稱」); myService.setUserCredentials(「email」,「password」); DocumentEntry newEntrys = myService.UploadDocument(「pdf path」,@「upload file name」);
但我不以爲然 執行的請求失敗:https://docs.google.com/feeds/default/private/full?convert=false
相關問題
- 1. 上傳文件到Google Drive
- 2. Google Drive API上傳到父文件夾
- 3. 將大文件上傳到Google Drive
- 4. 將文件從blobstore上傳到Google Drive
- 5. 將文件上傳到Google Drive
- 6. 將多個文件上傳到Google Drive?
- 7. 如何將文件上傳到Google Drive
- 8. Google Drive V2 Java API - 將文件上傳到特定文件夾
- 9. 將文件上傳到Google Drive中的指定文件夾
- 10. Google Drive API不會上傳文件
- 11. Google Drive API上傳/創建文件(.NET)
- 12. 使用Google Drive API上傳文件
- 13. 使用嵌入式瀏覽器將文件上傳到Google Drive#
- 14. 以zip格式壓縮多個文件夾 - Google Drive Scripts
- 15. Google Drive iOS:上傳HTML文件以覆蓋現有的Docs文件
- 16. Google Drive文件通過API上傳未上傳
- 17. 使用拖放將文件上傳到Google Drive iFrame
- 18. 將多個縮略圖圖片上傳到Google Drive API文件?
- 19. 確保將文件上傳到Google Drive C#
- 20. 如何將文件上傳到Google Drive或Onedrive的HTML5 Web App?
- 21. 將文件上傳到Google Drive與iOS的問題
- 22. Google Drive將文件上傳到Python中的[email protected]
- 23. 將上傳到Google Drive的文件鏈接插入數據庫?
- 24. Android Google Drive API上傳到我的公共文件夾
- 25. 如何使用Python腳本將文件上傳到Google Drive?
- 26. 使用Raspbian和Raspberry Pi將運動文件上傳到Google Drive
- 27. 將文件上傳到Google Drive時未定義的變量
- 28. 如何從iOS將database.aqlite文件上傳到Google Drive?
- 29. 使用PyDrive將大文件上傳到Google Drive
- 30. 將圖像上傳到Google Drive公用文件夾
謝謝,但我有一個疑問。我從我的用戶那裏獲得電子郵件ID和密碼。谷歌驅動器API請求客戶端ID和客戶端的祕密。如何使用電子郵件ID和密碼獲得這些detials – Sathish
您需要創建一個 - https://developers.google.com/drive/enable-sdk – GJKH