How can I build a Desktop client for Google Drive? - google-drive-api

I want to build desktop application for Windows OS and use Google Drive to save some data in the cloud. After reading Google Drive SDK I found that only Web-applications, were installed from Chrome Web Store are allowed to use API and have access to data on Google Drive.
So my question: do I have any way to build native client (C++, Windows) for Google Drive? I know about hacks with using Google Docs API - but they can stop working any time, and I want something stable. Why Google team do not allow me create desktop application for their service? I have support of many other cloud storages and they do not have such restrictions.
Thanks.

For now you will have to use the (older) Google Document List API which provides full read-write and list access to Google Drive. (Google Drive and the former Google Docs use the same data)
So until we extend the capabilities of the current Drive API to cover the Google Document List use case you should use that instead.
EDIT: We just launched the v2 of the Google Drive SDK so you should now use that instead.

I have been working on a similar problem. I have realized that there is no straight forward way for doing this. Google Drive SDK is not easy to work with and how someone can simplify the process of connecting desktop application to Google drive shortly. I know this is not much help, but I am looking for a soltuion as well.
Here is some links that I have come across, haven't solved my problem either, but if you come to a solution please let us know PLEASE:
How to make GUI Client to upload file in java
Using Java APIs for downloading file from the Google Drive
http://www.coderanch.com/t/643120/Servlets/java/upload-file-drop-box-file

Related

Google Drive API grant access to another/multiple Apps

Currently, we have a mobile App that is storing data into a Google Drive folder using the scope
https://www.googleapis.com/auth/drive.file
View and manage Google Drive files and folders that you have opened or created with this app
Now we are planning to add a web app as well. The problem is, that the web app cannot access files uploaded by the mobile app and vice versa.
So is there a way to tell the Google Drive API that those two apps (web app and the mobile app) are in fact the 'same' application?
I want to avoid using the scope for full access to the user's Google Drive.
https://www.googleapis.com/auth/drive
Or is there another way that both apps can read/write the same folder?
Thanks in advance.
I also took a look at the Google Picker API but it does not seem to be what I want.
Posting this for documentation purposes.
As mentioned in comments, both apps should be part of the same Google Cloud Platform project, that's the only way to "tell" the API that they are the same application.
If they are not part of the same project, you should use the drive scope instead.

Google TV, Access Google Drive using Android API not possible

We are building an app where we needs to access files stored at google drive.
We are able to run our app other than google tv.
Reason found so far:-
Google Play Services are not available for google TV.
us there any alternative to access Google Drive File at Google TV.
Thanks
Dev Team
You should be able to do the OAUTH2 in a WebView and use the raw api's. https://developers.google.com/drive/
and
https://developers.google.com/drive/quickstart-java
You'll probably need to use different support libraries for TV.

Google drive and confidential files

I have been looking for quite some time and cannot seem to find the answer I need. I tried using the iframe tag method for Google Docs Viewer to view my files and noticed that pptx, xlsx, etc... PDF seems to be the only one that is visible. So I came to the conclusion I have to use Google Drive and it's API. If that is so, my question is... Can I keep these files hosted on my clients server and use the API to view the files or do they have to be hosted on Google Drive's cloud server? Thank you.
No, this is not possible, sorry. All files are stored on the Google Drive cloud servers.

Use Google Drive APIs for android application

I want to integrate Google Drive on an Android application.
It looks like it's possible to integrate Google Drive using Google Drive APIs and Google Document List APIs.
Is there any issue to integrated Google Drive, like guidelines or rules?
I downloaded assets of Google Drive icons from Branding Guide Line. Is it OK to use any icons from them?
Is there any guide lines to integrate Google Drive on android application?
I checked the developer documents for Google Drive. It described them for Chrome Web Applications. I couldn't find any documents regarding Android applications. When will documents and guidelines for Android application be released?
I have some questions concerning Google Drive policy. Where can I get these policy questions?
Most of our branding guidelines ar described in this document as long as you follow them you should be fine using the assets and the Drive brand.
For your policy questions simply ask them here. If they have legal implication please send an email to legal#google.com, you may also try policy#google.com

How can an IOS app access Google Drive files

Does anyone know how if IOS apps can access files stored on Google Drive?
I did not find what I was looking for on https://developers.google.com/drive/
thanks
Andy
The API for Google Drive is now released for Objective C. You can find it here:
http://code.google.com/p/google-api-objectivec-client/
Google Drive App for iOS will be release soon, is what was said in some articles. See below.
http://www.gottabemobile.com/2012/04/24/google-drive-for-iphone-and-ipad-coming-soon/
http://www.readwriteweb.com/archives/full-sized_screenshots_of_the_google_drive_ipad_ap.php
I think the generic Google GTL Library (Google APIs Client Library for Objective-C - http://code.google.com/p/google-api-objectivec-client/ ) is going to include some generated code for Drive access. Drive SDK docs seem to link there but the code is still missing. Doc is also a bit inconsistent regarding iOS native apps:
"Apps will not have any API access to files unless the app has been installed in Chrome Web Store. To test an app during development, you must first create a listing and install it."
Nico.
Yep although not directly through Objective C you would need to interface with Ruby, Python, PHP, or Java.
Here is a list of Examples: https://developers.google.com/drive/examples/index
http://itunes.apple.com/us/app/idocs-hd-pro-for-google-docs/id498653441?mt=8, I found this App
can access google drive files on iPad, maybe google docs api can
You can use the Google Data APIs Objective-C Client Library to access files stored in Google Drive using the Documents List API.
The library also includes a complete sample: http://code.google.com/p/gdata-objectivec-client/source/browse/#svn%2Ftrunk%2FExamples%2FDocsSample
"Google APIs Client Library for Objective-C" has been depreciated by Google and is only working for apps already on AppStore.
New Implementation for accessing Google Drive API for iOS using "Google APIs Client Library for Objective-C For REST".
Here is the working implementation for accessing Google Drive Files in iOS using "Google APIs Client Library for Objective-C For REST" library : https://stackoverflow.com/a/41649210/1999368