confusedvorlon / hsgoogledrivepicker Goto Github PK
View Code? Open in Web Editor NEWA sane and simple file picker for Google Drive.
License: MIT License
A sane and simple file picker for Google Drive.
License: MIT License
..
open picker
sign in
click allow
signin view disappears
expected:
everything is splended
actual:
signin view shows again
I used below code for download file, file downloading work well when file name have extension (like abc.png, xyz.docx, aaa.pdf).
if any file has no extension in name (like abc, xyz, aaa), that file is not downloading,
it gives error : The operation couldn’t be completed. (com.google.HTTPStatus error 403.)
HSDrivePicker *picker = [[HSDrivePicker alloc] initWithSecret:googleDriveClientSecret];
[picker pickFromViewController:self withCompletion:^(HSDriveManager *manager, GTLDriveFile *file) {
[manager downloadFile:file toPath:tmpstrmahesh withCompletionHandler:^(NSError *error) {
if (error)
{
NSLog(@"Error downloading : %@", error.localizedDescription);
}
else
{
//success code
}
}];
}];
Hello Google Drive Developer,
We have identified you as a Developer who has used the Drive API in the last 30 days. We are writing to let you know that on September 13, 2021, Drive will apply a security update that will change the links used to share some files, and may lead to some new file access requests. Access to files won’t change for people who have already viewed or modified these files.
Please update your code as detailed below before September 13, 2021, to avoid failing requests.
What do I need to know?
Items that have a Drive API permission with type=domain or type=anyone, where withLink=true (v2) or allowFileDiscovery=false (v3), will be affected by this security update.
In addition to the item ID, your application may now also need a resource key to access these items. Without a resource key, requests for these items may result in a 404 Not Found error (See below for details). Note that access to items that are directly shared with the user or group are not affected.
Will this change affect me?
If your application uses the Drive API to access files which have been shared with a user through link sharing, your application may be affected by this change.
What do I need to do?
To avoid errors accessing files, you must update your code for accessing files to include the appropriate resource keys. Details on how to do this for each of the affected Drive APIs is included below:
Changes to the Drive API
The resource key of an item is returned on the resourceKey field of the file metadata in the Drive API response.
If the file is a shortcut file, then the resource key for the target of the shortcut can be read from the shortcutDetails.targetResourceKey field of the same resource.
URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey.
Requests to the Drive API can specify one or more resource keys with the X-Goog-Drive-Resource-Keys HTTP request header.
Learn more about this change from the Drive API guide.
HI,
When initializing the viewController, the app crashes with message "Unrecognized selector" for
self.preferredStatusBarStyle=UIStatusBarStyleDefault;
I'm using the pods with platform :ios, "8.0"
Any idea about the problem ?
Thanks
Morgan
Hi,
Is there any way to sign out from google drive, so another user can sign in ?
Regards,
Morgan
When I downloaded and run your code after all the instructions , its working but when I implement in my actual project I get an empty picker .I don't get any crashes and I don't get a way to solve this problem
Hi,
I'm no longer able to use your library. I'm getting following error:
Error: disallowed_useragent
Here's some research:
http://stackoverflow.com/questions/40591090/403-error-thats-an-error-error-disallowed-useragent
http://stackoverflow.com/questions/40654403/403-error-disallowed-useragent
Looks like it's not possible to use google apis while using web application credentials.
Is it hard to switch to ios client outh instead?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.