Im using drive api sample code for accessing google drive files in my app.But i cannot access the files that were shared with me.Do i need to change scope of google drive api in ios to access all files shared with me?
To get a list of the files shared with you, you can use the drive.files.list request with the sharedWithMe filter.
Related
How to upload a file using the google drive api and when the file is getting opened it will not show a restriction message and allow any user to open it.
For example I have this URL
https://drive.google.com/file/d/1cvmvU-Tz66Z7x3ukHqLgoB9BY9pxftrn/view?usp=drivesdk
That was uploaded from the app but it got restricted.
You have the control to share files from Google Drive and upload files and folders to Google Drive.
You can share the files and folders that you store in Google Drive
with anyone in your work or school, but your organization may limit
how you can share files with other people.
Also, you can visit this help forum post on to what extent you can allow everyone to upload in your drive.
Additional reference: Drive API Documentation
Is there a way to download files from a specific google drive, by using the google drive api? Currently i can only read the drive of the google user logged in.
Inorder to access data owned by someone on Google drive you need their permission. You can't just access my files unless I let you. The most common method for this is oauth2 but you can also use a service account.
Now if I set a file to public you would be able to read it using an API key but I would have to give you the file id.
For Google Drive API, 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? Thanks
You may refer with this documentation. Full access to all files in the user's Drive (https://www.googleapis.com/auth/drive) may be necessary for some apps. An app designed to sync files, for instance, needs this level of access to Drive. Apps with special needs related to listing or reorganizing files might need full scope.
Check the sample code in this GitHub page.
Try this scope :
Google Drive
This will bring Full permissive scope to access all of a user's files
I am trying to upload pdf files on Google drive or any cloud service and read these files in my application, do I have to use SDK's or there is a way to get files from public folder without forcing the user to login?
In my application users will give a url to their shared dropbox folder. When it is given I want to grab the images in that url and download to a folder in my application.
Is this achievable?
I've tried to do this in SharpBox. I've managed to open a connection to dropbox storage through SharpBox and successfully connect to my public folders.
But I couldn't find a method which accepts a shared dropbox url and download files from that url.
Thanks
This article might be helpful, don't know enough about the edge cases in your particular use though.
https://www.dropbox.com/help/201/en