Multiple Google drive accounts - google-account

I have two Google drive accounts.I have downloaded Google drive once.But I can use only one account with it for sync files.
How can I use another account for sync files in one computer? Whether I have to download Google Drive again?

You can use Google Drive to manage first account then use a Cloud Storage Manager application like cloudfuze.com or any other you can find using your favorite search engine.

Related

Creating a new Google Drive Account for Each of My App's Users

I'm creating an iOS app that allows users to record video clips and store them in the cloud.
When a new user creates an account on my app, is it possible to create a new Google Drive account for just that user, providing them with 15GB of free storage? (E.g., if my app has 1,000 users, each user has his own Google Drive account behind the scenes. I.e, 1,000 Google Drive accounts total.)
I know typically you'd host these files on S3 or something similar, but does using Google Drive make sense as a cheaper alternative?
You need a way of automatically provisioning a Google Drive account from an API. According to https://developers.google.com/drive/v2/web/about-sdk, Google Drive does not offer that capability to developers. It is only available through specific partners, such as AppDirect (API docs: https://docs.appdirect.com/developer). You could use their API to register a new Google customer and purchase a Google account, but I think this only makes sense for commercial accounts.

Google Drive iOS SDK Shared Folder

I have an iOS app that loads PDF's for viewing. I want to allow the app to get the PDF's from a shared folder in google drive that is shared by some main admin account.
I have created a google drive project and set up OAuth for my app and am able to successfully list files using various queries with GTLQueryDrive.
The issue I am facing is related to the auth scope.
Lets say the google account hosting the files contains a shared folder: PDFAppFiles. We share this folder with 20 people.
Is there a way in my iOS app to request the auth scope for just that folder? I don't see this option listed: https://developers.google.com/drive/v2/web/scopes
Or, should I be approaching this problem a different way?
As the scopes page suggest, it authorizes your app to do what the requested scope is. This is a bit different from asking or setting permissions to a file or folder.
My recommended approach for the problem is to set permissions for every folder you want to control. The Share Files page of the Drive documentation details how you can do it.

Google Drive - Access Drive without consent form (Username/password known)

I've been reading on Google Drive's API which seems straight-forward enough, but I'd like to use it a bit differently.
Instead of a client-side application, I need to be able to batch copy files in a given directory on a server to a specific Google Drive account which I have control over. To elaborate, I'm implementing a scan-to-email feature in which a user can scan a document on our copier which is then copied to that Google Drive account.
This is done for internal users, so the accounts would be generic and there would be no reasons to change the passwords. Is this possible at all?
I would recommend you go with a service account. Think of a service account as a user, a service account will have its own drive account. You will be able to upload the files to it, and your application wont be required to login as it will have the login built into it. You will not be able to login and see the files for this account via the web interface.
In order for the users to access the files again you have a few options.
You can then set the permissions on the files to allow the different users to access the files via there google drive accounts. Google drive api permissions
you could create your own interface and use files list to list the files that are currently stored on the service account.
Heads up:
You will at some point want to know how much space the service account drive has left. use about.get
Google has a number of client libs that can make doing all of this quite easy. but you haven't said what language you are planning on doing this in.
You could rely on the insert method of the "File" resource within the API. This will allow you to create a Google Drive File with the file type based on the scanned file. Refer to this document for examples and further assistance: https://developers.google.com/drive/v2/reference/files/insert#examples
https://developers.google.com/drive/web/manage-uploads

Storing static files on google drive in my rails app

In my rails app, I need to store my static assets (JS, CSS, images and downloads) on a storage service like S3, but I can not use S3 at the moment so I have searched and found google drive to be a good service.
Consider that in my app user can upload products and other user and pay then download the products.
I like to know that is there any problem for using google drive for these purposes?
Should I use google storage over google drive?
Does google drive provide secure and auto expire downloads link like S3?
You can use google drive through the google API.
We reserve a login through our apps account to act as the system and then share the requisite folders with that account.
That way you can then upload, download and pick up the files through the drive API using its account, without having to log in as different accounts each time.
I used the google_drive gem rather than the google one due to the hideousness of the security implementation.
Worth noting that the google drive gem now uses the google security implementation (since google shut off access by its previous method). You then have two options: a) Use a single account as described above.
b) Set up service account access.
Either should give you what you need.
You can use Google Drive for the storage of your static site files, although (I do not believe) Drive as a service has the same SLAs as Google Cloud Storage.
Google Cloud Storage is going to give you better SLAs and the expiring download links you are looking for (Cloud Storage Signed URLs).
To try and accomplish something similar in Drive, you would have to require each user to have a Google account, and programmatically set and revoke access, the only other access option is to make the share link available to everyone that has the link. (You might be able to circumvent this by copying the file around each time, but that would be ugly, and cumbersome).

Enterprise iOS app cloud storage

I'm trying hard to get my mind wrapped around how you would be able to store files in the cloud from an enterprise app without requesting the user to log in.
The background:
I'm developing an iOS app that will be distributed to certain employees in our company. As of today we already have an app that uses an FTP server to upload user created files. In this new app, I would like to skip the FTP server and instead use some sort of cloud storage (DropBox, Google Drive etc.)
The users will upload some files (around 1-2 uploads per day) to the cloud service, and people at our HQ will be able to look at these files.
I don't want to have each employee create a personal cloud drive account that would be linked with a "master" account. Rather, I want this specific application to always upload it's files to the cloud storage "master" account. Is this even possible?
Since only our employees have access to the app, I don't see the security factor as limiting. The information sent is not of use to anyone else than our company (no high-security stuff).
Is it possible to "hard-code" an OAuth token that corresponds with a certain account that the app always uses? Are there other possibilities that I'm not aware of (other than FTP or cloud storage)?
Any help will be appreciated.
Regards,
Jens Nilsson
how about use one dropbox account and hard code it in your app? then your enterprise user can upload their files respectively. surely you need do some trick to make no any file with duplicate name.
i am developing one iOs application that uses a parse cloud service to upload user generated files.
in that parse service, user dont need to create a account separately.each and every user can be able to uploads files to cloud where user can be able to visit all the files which is in the cloud which is created by some other user.
suppose if we want limit some user files accessibility or upload files privilege also we can achieve that through using the parse.
i just remember parse is not open source.

Resources