My app needs to save and retrieve images from root dropbox folder (not my app's root folder under dropbox), currently I setup my app in App Console with files and detesters, need access to files already on Dropbox and specific file types for images.
Which type of dropbox api should I use ? Core API or Sync API?
You want to retrieve files from Dropbox then you need to use Core API of Dropbox.
For better use you need to read https://www.dropbox.com/developers/core/start/ios
this.
This is a good way to retrieve specific files from Dropbox in your case.
Dropbox is deprecating Sync API
Related
I have an iOS app that loads PDF's for viewing. I want to allow the app to get the PDF's from a shared folder in google drive that is shared by some main admin account.
I have created a google drive project and set up OAuth for my app and am able to successfully list files using various queries with GTLQueryDrive.
The issue I am facing is related to the auth scope.
Lets say the google account hosting the files contains a shared folder: PDFAppFiles. We share this folder with 20 people.
Is there a way in my iOS app to request the auth scope for just that folder? I don't see this option listed: https://developers.google.com/drive/v2/web/scopes
Or, should I be approaching this problem a different way?
As the scopes page suggest, it authorizes your app to do what the requested scope is. This is a bit different from asking or setting permissions to a file or folder.
My recommended approach for the problem is to set permissions for every folder you want to control. The Share Files page of the Drive documentation details how you can do it.
Can anyone knows how to give the access to limited folder or files from dropbox. So that i can access only those file or folder from application. I have folder on dropbox root which contains list of songs , I want to give access to that folder only from my iOS app. How to achieve this? Please suggest any way to do this.
I am using dropbox api for the same.
Thanks in advanced.
The available app permissions are here: https://www.dropbox.com/developers/reference/devguide#app-permissions.
Your only option would be to get App folder permissions, which would mean your app would get its own folder (named Dropbox/Apps/<app name>), and you would have access to only files in there. Otherwise, you'll need to get permissions to the user's entire Dropbox (either Full Dropbox permissions or File type permissions to access only a certain kind of file).
Am writing an iPhone App in which I want to upload a text file from the iOS App to somewhere & I thought of using dropbox for it. I will upload the file to my dropbox ID from the App (i.e. the user won't be required to authenticate with his/her dropbox credentials). Is this possible? Dropbox API (I even tried GDrive API) asks for auth ; how do I give my dropbox credentials through code & upload the file to my dropbox account?
You must need Auth,otherwise in which account the file gets uploaded??
I don't think there is any other means to accomplish this except through OAuth.
Please refer to this framework that enables your app to access files from Dropbox without having to worry about the complexities of implementing a file browser, OAuth, or managing uploads and storage.
I am developing a ios app. in that app I am using core api of dropbox. I am able to create a folder on dropbox. But I am stuck on create a file on that folder in dropbox. using core api. Is it possible to create file on dropbox using core api in ios?
Yes, the easiest way to create a file using the Dropbox Core API is with the /files_put endpoint:
https://www.dropbox.com/developers/core/api#files_put
For larger files, you should use the chunked upload calls:
https://www.dropbox.com/developers/core/api#chunked-upload
https://www.dropbox.com/developers/core/api#commit-chunked-upload
I have an app using RestKit successfully. I am building an IAP in the app and for iOS5 I needed a place to host the app files for the IAP. I decided using Amazon S3 for that.
Now I now that I can integrate amazon API but I wish to keep my app simple, and since I am using RestKit I just want to use it to download the files.
Is there a guide or explanation on how to generate a bucket url with expiration and secrets ?
Thanks
Shani
Sure: all the information you need is in the Authenticating REST Requests documentation page.
Also, it's not entirely clear from your question, but I hope you're putting the URL generation in some web app somewhere that you control, rather than directly embedding it in the IOS app. I also hope you're using IAM to restrict that key to the appropriate permissions level regardless.