Comments
-
The Sync SDK doesn't offer a convenient way to make a copy like this, so you'll need to make the file with the name you want and write the data to it. I'm passing this along as a feature request though.
-
The metadata is cached, so there's no harm in calling listFolder as much as needed. We definitely don't recommend serializing/deserializing the objects though, as there is some special initialization that occurs, which you won't get when deserializing and could cause problems. Anyway, you're correct that there's currently…
-
Thanks for the code! Based on gson.fromJson(restoredData, type);, it looks like you're using some sort of sort of serialization framework to store and retrieve DbxFileInfo to/from JSON, is that correct? We don't explicitly support that, and it's possible that this is causing the issue. Can you try it without that part?…
-
Thanks for the report. First, can you confirm that you're using the latest version of the Android Sync SDK, currently v3.1.2? Also, is this related to your other question or should we consider this a separate issue? In any case, if you can supply the relevant code snippet(s) that should be helpful.
-
The Drop-ins for web are JavaScript components, so you would integrate them on the front-end of your site using JavaScript (not on the back-end, e.g., using Java, if that's what you're referring to). Have you read the documentation for the Drop-ins yet? What do you have so far and where are you stuck?
-
No, there currently isn't a way to restrict the Chooser to a certain path like that, but I'll be sure to pass this along as a feature request. (Unless you mean you want them to be able to view and download from your account only? In that case, you may just want to use a shared link to a folder in your account:…
-
When using Drop-ins the domain(s) you want to use it on must be pre-registered on the App Console: https://www.dropbox.com/developers/apps Click on your app there and enter the domain for your site in "Drop-ins domains".
-
Your button doesn't seem to be hooked up to anything, and you added your JavaScript code inside a <style> tag instead of a <script> tag. I recommend reading through the Chooser documentation again, and getting some help with the general HTML/CSS/JavaScript development for your page if you're having trouble. That's outside…
-
The JavaScript code on a web page should go in a <script> tag. As for when to run it, for the JavaScript that creates the button, you'll probably want to run that when the page loads. How exactly you do that depends on what libraries you're using, if any, (e.g,. jQuery, etc.), so I can't answer that specifically for you.…
-
I mean that when you give your app to other people to use, for example, by releasing your app on an app store or marketplace. The API is designed with the intention that each person that uses it would link their own account. When they first start using your app, they can use the app authorization flow it implemented to…
-
No, your app shouldn't directly handle any user credentials. When you release your app to other users, they can link it to their own accounts just like you linked it to yours.
-
No, the app authorization flow on iOS should only be processed via the official Dropbox for iOS app, or via an OAuth flow on the Dropbox web site. We recommend using the official SDK, which handles most of the work for you: https://www.dropbox.com/developers/core/sdks/ios The tutorial covers listing files and folders:…
-
Quick follow up here on #3, we now have an endpoint for saving a file to a Dropbox account via a URL: https://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/
-
I'll start by saying this isn't impossible, but some pieces may be a manual process right now. :-) The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account, as you described.…
-
Thanks for the report. This should be fixed now.
-
If you only need to know about changes in your own account, that's fine. Generating an access token on your app's page links the app to your own account. (To link the app to any other accounts though, you'd have to implement the OAuth app authorization flow as shown in the OAuth guide.)
-
Can you elaborate on what you mean when you say you're only trying to use webhooks? What are you trying to build?
-
Exactly how you link your app to an account depends on the specifics of your setup. E.g., what SDK or library are you using, if any? In general though, you should work through the tutorial for whatever SDK or library, as that should show you how to get started. Also, the OAuth guide may be helpful:…
-
Webhook notifications only fire for changes in accounts linked to your app (that is, accounts that users have authorized the app to access). Are you making changes in an account linked to your app?
-
If you're looking for the new iOS 8 document picker extension, I believe you want to use UIDocumentPickerViewController, for which the Dropbox app supports the modes: * UIDocumentPickerModeImport * UIDocumentPickerModeExportToService
-
Yes, this is a part of the API and applies to all of the SDKs.
-
No, the Dropbox OAuth app authorization flow requires the user to visit the Dropbox site in a browser to authorize the app. That only needs to be done once per user though, after which the app can store and re-use the resulting access token.
-
The official Objective-C SDK for API v2 has been released here: https://github.com/dropbox/dropbox-sdk-obj-c
-
Thanks for the feedback! I don't have any news to share regarding a new Objective C SDK for API v2 though.
-
Due to the size of certain numbers used by the SDK, it requires a 64-bit build of PHP in order to run properly. (Or more specifically, the SDK checks the size of PHP_INT_MAX, as some of the numbers, like file sizes, quota, etc, can be larger than 32-bit ints can handle.) It sounds like you currently only have a 32-bit ints…
-
Yes, please open an API support ticket from the account that currently owns the app and we can help: https://www.dropbox.com/developers/contact
-
To get information (e.g., path/name) about files or folders in a Dropbox account, you can use either of the following: https://www.dropbox.com/developers/core/docs#metadata https://www.dropbox.com/developers/core/docs#delta To get a shared link for any file or folder, you can use:…
-
The Dropbox API doesn't offer another way to store and query structured data like this, but I'll be sure to pass this along as feedback. You could store structured data as files, e.g., as JSON, but that wouldn't offer you a way to look up pieces of data via specific queries. Depending on your particular scenario though,…
-
It looks like this error message is coming from the SharpBox library, and not the Dropbox API itself. As it's made by a third party, we can't provide any support for it of course. If you can print out the error being returned by the Dropbox API though I should be able to offer more guidance. (That is, the Dropbox API…
-
Thanks for posting! I'm sending these along as feature requests.