How to use Google Drive in a Java Desktop app?

后端 未结 4 1659
夕颜
夕颜 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:37

    This question is a little bit old, still. You can look at this example: https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2

    They do the OAuth2 for accessing task. But I just used the same code to access the files using the v2 API. http://code.google.com/p/google-api-dotnet-client/wiki/APIs#Drive_API

    I only retrieved the file list, but it is working (from .NET, desktop app).

提交回复
热议问题