I am able to access google drive folder using google drive api but i could not access images and did not get ImageId within folder
If we pass static Access_token then it will be expire after 3000 seconds, So after that what we have to do ? I tried so many thing but did not get proper result, Can anyone help me to access google drive folder children id
Related
I'm using Google Drive as a storage and decided to put one file into multiple folders (~500) in my case. I called Google Drive v2 API PUT files method to update file parents. It returns me error 400.
Does anybody know what is the addParents and removeParents limitation?
I am creating an application which can insert files into Google Drive and lists it. I am using Google Drive API. But my problem is that for some accounts it is not listing all files in my application. but for many account it shows all files perfectly
so i am no clear that what is the issue is it permission issue or another?
if in google drive folder i have set share setting with public then only it shows all folder
I have used below scope
I have used below scope........ var googlePlusOptions = new GoogleOAuth2AuthenticationOptions
{
ClientId = "",
ClientSecret = ""
};googlePlusOptions.Scope.Add("openid");
googlePlusOptions.Scope.Add("profile");
googlePlusOptions.Scope.Add("email");
googlePlusOptions.Scope.Add(DriveService.Scope.Drive);
googlePlusOptions.Scope.Add(DriveService.Scope.DriveAppdata);
googlePlusOptions.Scope.Add(DriveService.Scope.DriveAppsReadonly);
googlePlusOptions.Scope.Add(DriveService.Scope.DriveFile); googlePlusOptions.Scope.Add(DriveService.Scope.DriveMetadataReadonly);
googlePlusOptions.Scope.Add(DriveService.Scope.DriveReadonly);
googlePlusOptions.Scope.Add(DriveService.Scope.DriveScripts);
googlePlusOptions.Scope.Add(DriveService.Scope.DrivePhotosReadonly);
I searched the other SO ticket that is related to your problem, I found that the issue is in the setting of the scope. Make sure the scope that you use is https://www.googleapis.com/auth/drive.
You can also check this documentation for more information about the SCOPE.
This are the related SO question.
Google Drive SDK API does not lists the file uploaded by Google Drive in java
Access to all files on a user's Google Drive
I had a domain www.xxx.com and have changed to www.xxx.co.
I've already added this new domain on console.developers.google and authorize Google Works "third parts" to access drive.
But every time I create a file through the google API drive with my app it creates on my root count that i logged in and not on the folders of my antique domain.
Is it a problem of permission right? How can I solve this?
I have a google drive where am storing few google sheets. My java web application is able to search a file that is present in my own google drive using Javascript API. Is there a way to search for a specific files in other's google drive via code? i will be getting the shareable link to the google drive am supposed to search. can this be done? As far as i checked this is not possible. Also there is no where in google document that says i can search files in other's drive. Kindly someone confirm.
This is an OAuth question, not a GDrive question.
The account that the GDrive API will apply to is determined by the Access Token that it is called with. So, if you can get an Access Token for somebody else's Drive, then you can use that to search their drive. How you would get such a token will depend very much on the details of your use case and the trust relationship.
I am trying to authorize files on my google drive with specific APP authorization I created. As files on my google drive can only be manipulated by its authorized app, is there any way I can convert these "None" authorized file with APP authorization? And, if yes, by which function?
I looked all over the tutorial document but only find discussion about permission. The only method I can think about is uploading these files to google drive with upload function from my created app. But I guess there is a much smarter way. Do any one has the same experience?
Here list my steps to create authorized file:
First, I start my app from using sample code, DrEdit. https://developers.google.com/drive/examples/python;
From the code, I successfully open new files and saw them listed on my google drive.
From view authorized app, I can clear see these apps created from my app have their authorization signed with app ID. The other files original belong to me have these authorization signed as "None".
I had the same issue and had to change the scope from https://www.googleapis.com/auth/drive.file to https://www.googleapis.com/auth/drive which gives full access to all drive files rather than just the ones created by the app.