Listing large 1000 shared drives from Google drive via API - google-drive-api

I want to get all shared drive, large 1000 shared drive via API or export it to a list
only get 1000 shared drive via admin and API
In google document about shared drive, they limit view 1000 shared drive,
Drive lists up to 1,000 shared drives in the left navigation. You can still access the other shared drives using the direct URL, or search for specific files and folders in the shared drives.
https://support.google.com/a/users/answer/7338880?hl=en
I using api but still can not load over 1000 shared drive
https://developers.google.com/drive/api/v3/reference/drives/list?apix_params=%7B%22pageSize%22%3A100%2C%22pageToken%22%3A%22~!!~AI9FV7RNwVtQIVYh3GH4Dm6wzTfzUsZ4TbO_2SItIN1lJ7CvzZR7vmzZfZIQCEqS6eHx2Xc8lsAb%22%2C%22useDomainAdminAccess%22%3Atrue%7D#try-it
How to list all >1000 shared drive via API, or export to a list?
Thank you

Happy to show my friends, I found the way to do that.
we need account admin, the account can access to this link
we need add param useDomainAdminAccess=true
Easy we can test easy before coding in Google playground
https://developers.google.com/drive/api/v3/reference/drives/list#try-it
And here is my result I can load 1699 shared drive
Thank you for my friends K, M, and Tanaike, I am happy to see you.

Related

Google Drive integration with private website

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.

google drive API to store files from website

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

Space occupied by files uploaded using Google Drive API

I created a Google Service Account to upload and download files using Google Drive API.
I have a quota of 100 GB in my main Google Drive account.
The files that I upload using the Google Drive API counts to this 100 Gb?
Thanks
Based off previous information (here and here) it seems the service account has its own storage that you may not be able to increase. I'm not entirely sure if this still stands today, as I could not find any other information in the docs. If it is the case, you may want to use your actual account (which would share the storage), if you need more space. I believe for larger storage size, Google Cloud would be better than Drive.

Google Drive API: Allows you to upload/download to users accounts or only your own?

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; }

Access to all files on a user's Google Drive

The api's for SkyDrive and Dropbox have options for managing the user's entire drive. For Google Drive, the drive.file scope seems to give only access to the files created by the app.
Is there a scope for Google Drive that gives access to the entire drive?
Edit: The below answer was correct, but the latest version of the Drive API allows requesting of a full scope with https://www.googleapis.com/auth/drive. The Documents List API is no longer needed for this use case. See https://developers.google.com/drive/scopes#requesting_full_drive_scope_for_an_app
To be precise the Drive API gives access to Files created by the app and files that the user has opened with the app from the Drive UI (through open-with).
To manipulate all of the Drive files of the user you can use the Google Document List API . Though we currently forbid Drive applications (the ones that have get integrated in the Drive UI through the Open-with and Create dialogs) to request access to the Document List API as we want to keep Drive application on a per-file security model. (Basically adding the Document List scope in the Drive SDK settings raises an error).