Is it possible to share file created at google drive with specific google users using android drive API? It is said (http://googledevelopers.blogspot.ru/2014/01/introducing-google-drive-android-api.html) that "Google Drive API offers specialized functionality... including access to metadata and sharing features". However, I couldn't find any means to share file using android drive API. There's no hint in API documentation about how to do it. If it matters, I'm going to share file stored in AppFolder of my app (other users of the app should be able to access it).
Sharing is not currently supported in the Android-specific API (sorry for the confusing wording in the blog post.)
You can fallback to the web API to do sharing (e.g, modifying permissions). To use the web API, use DriveId.getResourceId().
However, files that are in the AppFolder are special. Items in that folder cannot currently be shared. They are only visible to your app and the specific user.
Related
I'm working on an iOS/Android app developed in Unity, that uses Google Sign-in through Firebase Auth, and from what I've read here, that should handle the OAuth 2.0 protocol. I would like to use the Google Drive API to allow the user to load files they have stored in their Drive, but I'm having trouble finding documentation on how to do that in Unity.
The most useful pieces of information are the following GitHub repo and Gist:
Unity Package for Google Drive API
Using Firebase to Authenticate to Google Drive (but not specific to Unity)
Any help on how to do it is greatly appreciated.
For future reference, I ended up using this video to implement Google Sign-in through Firebase in Unity. It was very detailed both on how to set up things from the Firebase side as well as Unity.
As for loading files from Drive, the solution was to use this unity package that allows you to call the native file picker for each platform, being able to load files from all Drive accounts the user logged-in in his/her phone, as well as any other file provider they could have (the phone storage itself, Dropbox...), all in a UI that is familiar to the user. I leave here the issue that led said solution, on another package from the same creator, which, by the way, I have a lot to thank for.
How to get the google drive storage quota using Drive API for android.
The following link describes how to get a about resource file using Drive REST API which will contain information.
https://developers.google.com/drive/v2/reference/about/get#examples
I want to use the Drive API for android. How can I achieve the same?
Since the Drive Android API only supports Drive FILE scope currently, it does not provide this information. You would need to use the REST APIs for that.
I would also suggest to add a feature request adding your use case so that the team working on the APIs can track it appropriately.
I'm looking for the possibility of making an android app that connects to a Drive account to upload files. The restriction is that this account should be a service account and not the user's account.
https://developers.google.com/drive/web/service-accounts Shows how to do it on the server-side of an application, but is it possible to do this in Android?
I understand that the SDK was not design for this purpose, but are there any workarounds to do this? Is it even possible?
Any sort of example or guidance is welcome. I want to use the Drive SDK for its resumable upload protocol, so I would also welcome other alternatives to do resumable uploads on Android.
This is what you want to do with Google Drive Android API now:
Open File
Create a File
Compress File
Use File Content
Use Folders
Queryin for Files
MetaData
Is it possible to share file created at google drive with specific google users using android drive API? It is said (http://googledevelopers.blogspot.ru/2014/01/introducing-google-drive-android-api.html) that "Google Drive API offers specialized functionality... including access to metadata and sharing features". However, I couldn't find any means to share file using android drive API. There's no hint in API documentation about how to do it. If it matters, I'm going to share file stored in AppFolder of my app (other users of the app should be able to access it).
Sharing is not currently supported in the Android-specific API (sorry for the confusing wording in the blog post.)
You can fallback to the web API to do sharing (e.g, modifying permissions). To use the web API, use DriveId.getResourceId().
However, files that are in the AppFolder are special. Items in that folder cannot currently be shared. They are only visible to your app and the specific user.
I got here a simple question for people that used to work with cloud storage API's.
I want to set up a client/server model where the client is Android and it uploads files periodically to the cloud. The server is a desktop application (using Python) that listen for changes on a folder and that downloads files to get data.
I read about Dropbox and GDrive and I was wondering which one is easier to handle for a beginner. I have those links for Android :
https://developers.google.com/drive/quickstart-android
https://www.dropbox.com/developers/sync/start/android
The Dropbox API seems to be much more simple on the surface !
Am I wrong ?
Thanks
Google has offered more services, and done more while costing the consumer less. Google is tough to beat, but Dropbox can match or beat Google in the storage wars. The real game changer is going to be Mailbox, and that is just coming on the market.
It appears as though the Google Docs document list APIs provide some level of programmatic access to Google Drive files. The documentation on the Google Drive developer site currently doesn't discuss that functionality at all, and says that apps "will not have any API access to files unless users have first installed the app in the Chrome Web Store." It's not clear yet if the Google Docs API is the path that Google is going to use for supporting arbitrary Google Drive access by desktop and mobile applications.
Hence I in my opinion for now use G drive. But who knows what new surprises are about to upraise. ;)
Dropbox has clear, public disclosed bandwidth limitations, while Google Drive does not. If you download a file many times on Google Drive, it could block it for 24 hours.
Dropbox has a clear limitation of 20GB or 200GB a day depending on your account, free or business. Google Drive, although free, does not clearly disclose its bandwidth limitations, so you are at risk of getting your downloads blocked.
Dropbox is very easy to use, and you can easily setup public shareable links, just like Google Drive. They both also have APIs.