How to use Google Drive in a Java Desktop app?

google-drive-api, oauth

Solution

Did you look at the sample app on the drive API page?

edit

google moved the examples to github

Problem

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 examples. Can someone point me at an example of storing or retrieving a file from Google Drive? I would really like to see a simple example in code or maybe a library which can handle this. I am stuck at Retrieve and Use OAuth 2.0 Credentials https://developers.google.com/drive/credentials

Original source