How to use Google Drive in a Java Desktop app?

后端 未结 4 1657
夕颜
夕颜 2021-02-09 07:09

I am dealing with mobile and desktop applications. I am trying to use Google Drive as a permanent storage folder. Unfortunately I am at a loss because I cannot find any example

4条回答
  •  既然无缘
    2021-02-09 07:39

    You should look into Documents List API.

    The Google Drive API & SDK are meant to be a mean to integrate applications into the Web-UI of Google Drive. To protect the security of the user's files, it puts some restrictions to the application developer, like:

    • The app has to be installed from the Chrome Web Store
    • The app can only access files created from the app itself,
    • or files selected by the user using the Google Picker UI.

    All these restrictions make the Google Drive API not a good choice for most non-web applications. E.g. installing the app from the Chrome Web Store is probably something you would find cumbersome to request from your users for a mobile or desktop application. Nonetheless, without being installed from the Chrome Web Store your application will always receive an error when accessing a file from Google Drive.

    The Documents List API allows you to store and load files (not only Google Documents!) into Google Drive.

提交回复
热议问题