I'm going to use Google's infrastructure to store files and I hesitate between Google Drive and Google Cloud Storage. I don't think I'll store a lot of data (less than 50GB). However I would like to offer search functionality through files contents (FULL TEXT) to my users.
I know it's available with Google Drive SDK https://developers.google.com/drive/search-parameters but I'm not sure it is for Google Cloud Storage files ? I don't want to force my users to have a google account and they will be able to share files to others, and they will do all their stuff through my web site.
One more question, is there a way to manage identities with a Google API (create/update users) ? without a gmail account ?
thanks
Google cloud storage does not offer full text search at this time.
Identities require a Google/gmail account, but check out signed URLs: https://developers.google.com/storage/docs/accesscontrol#Signed-URLs.
Your app can determine whether one of your users should have access to an app and then hand the user a signed url that grants access to that object for a limited period of time.
Related
I would like to integrate Google Drive with my private website in such way that user will provide my website with his own Google Drive, and he could perform on my website such actions as: viewing, deleting, adding or editing files. Is is possible? What is needed to do such integration?
I read Google Drive API documentation and I checked it is possible to perform such actions as creating, reading, editing files. But I have no idea how to perform it on someones else private Google Drive.
The first thing you need to understand is that drive api is a rest api the response is returned in Json format. The google drive api is not going to give you any visual representation of a users drive account. For example your not going to be able to show them the google drive web application from your website. You will need to code the interface yoruself.
As for how to get permission we use something called Oauth2 to request consent for your application to access the users google drive account. It can be a little confusing in the beginning but there are a number of tutorials and QuickStart's which should help you get started.
In my google console it says here Cloud Storage pricing
that the price for standard storage is $.026 per gigabyte month, which I think means that 500 gigs stored during one month will cost $13 since 500 * .026 = 13. But this article The Google Drive Price Cut Changes The Game For Personal Cloud Storage says:
Google is making a terabyte of cloud storage available for just $10
I don't see where you upload data to Google drive at Google cloud console.
My second question is that I want to make sure that I can create a virtual instance and connect it to Google drive or Storage and read the data from it and put that data into the RAM of the virtual instance.
Google Drive
is a web application which works as a file store allowing users to store files. Communication with it is normally done though the web application itself however developers can use the Google drive api to interact with google drive programticlly.
You may want to go though the documentation on the Google drive api to understand what its capable of.
Google cloud storage
is designed as a Unified object storage for developers and enterprises Cloud Storage allows world-wide storage and retrieval of any amount of data at any time. You can use Cloud Storage for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download.
Interaction with this is done primarrly though the cloud console and command line tools.
I don't see where you upload data to Google drive at Google cloud console.
You dont cloud console wont help you upload to google drive.
My second question is that I want to make sure that I can create a virtual instance and connect it to Google drive or Storage and read the data from it and put that data into the RAM of the virtual instance.
Google drive is a web application you cant create a virtual instance of that.
You might want to go though a few of the quickstarts to understand how Google cloud console and the command line tool work Quick Starts
I need to store all the documents that users upload in my website on one Drive account.
These documents are on user's computers. They don't have and do not want to have a Google Drive account.
It is not really clear if the "Google Drive API" can achieve that or if I need "Google Cloud Storage API" that is more expensive for only storing files.
Said API has to create a folder for the documents of each user.
In addition to achieve that, do I need a G suite account?
Thanks a million for your help
This might be a very silly question, but I'm just trying to make sure I'm going about things for my senior project right. Does the Google Drive API connect to the user's personal Drive space?
Actually it's a very good question because it confuses a lot of first time Drive users.
The answer is, It depends.
There are two distinct Google Drive APIs, with different characteristics and capabilities. These are the Google Drive REST API and the Google Drive Android API (GDAA). You have tagged your question with both.
The Google Drive REST API can connect to any Drive account, e.g. your own, one of your users, or a Service Account. Which account it connects to is determined by how the Access Token was generated.
The GDAA only connects to the Google account associated with the Android device it's running on.
I have a question about Google Drive that I'm hoping other programmers (with experience with the Google Drive API) will be able to answer. Note I have consulted the Google Drive API faqs and example projects but they dont answer my question. I'll provide some context in order for you to better understand my question.
We are developing an Smart Phone app that will allow people to view their civil engineering designs (Highway design, Dam design, Railway design, etc) in a 3d world, ie, showing their 'blue prints' in 3d. The app is being developed in Unity3d (3d Game Engine using C#).
Our plan is to create a Windows .exe (C# WinForms) that will allow the user to upload their blue print file to their own Google Drive account. The app will automatically download their blue prints from their google drive account (all the user has to do is login). Why create a .exe to upload files to a users account and not just get them to do it themselves through a web browser? Because we want to make it easy for the user, eventually provide automatic uploads/updates (when the user edits their project) and ensure that the files will always be in a specific folder on google drive. Thus a .exe will be able to achieve this.
My Question: Does the Google Drive API allow you to upload/download files to a users account. The Drive example projects appear to demonstrate uploading/downloading files to your own business Google Drive account and not a users. For those who have used the Google Drive API in their own projects; what are you charged for? Do you get charged for only downloading and uploading files or do you also get charge for connecting and querying files? If you upload/download files to an external Google Drive account (a users account) do you get charged or do they get charged?
If you have the users login to your app using Oauth2 they give you permission to access there google drive data. They can then download and upload to there account from your app.
Here are a few tutoials i did on this topic. Its a popular question, im working on a few sample apps to go with it.
Google Oauth2 c# Tutorial
Google Drive api C#
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets { ClientId = "YourClientId", ClientSecret = "YourClientSecret" },
new[] { DriveService.Scope.Drive,
DriveService.Scope.DriveFile },
"user",
CancellationToken.None,
new SavedDataStore(myStoredResponse)).Result; }