Comments
-
[Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-java/issues/230 ] No, the Dropbox API doesn't offer a way to set notifications for uploads from the API, but I'll pass this along as a feature request.
-
In order to get an access token for a user, your app must send them through the OAuth app authorization flow. Your app should never request or handle the user's actual Dropbox credentials (username/password). The Dropbox API does not offer a way for your app to get an access token directly from their credentials or an app…
-
The /2/sharing/list_folders[/continue] endpoints will return the list of shared folders themselves. To list the actual contents of any particular folder(s), you should use /2/files/list_folder[/continue]. I recommend reading the Content Access Guide for more information.
-
Yes, by file activity I am referring to any file changes, such as upload, move, delete, etc. To clarify, do you still get the 504 error when using a limit of 1? That is the lowest possible value for that. And just for reference, did you try using recursive=false, and if so, did that eliminate the 504 issue?
-
No, unfortunately Dropbox doesn't offer anything quite like that, but I'll pass this along as a feature request.
-
You mentioned you checked in LogCat on the Android side, but did you also add some logging to check on the JavaScript side? I recommend doing so if you haven't. And then when you do inspect it in JavaScript, does it have the same format as the sample I shared in my previous post?
-
I see, thanks for clarifying, No, unfortunately there isn't a way to download multiple specific files like this at once, but I'll pass this along as a feature request.
-
I'm not sure I understand what you mean when you say you want "to create a shared folder with different paths". Can you elaborate? In any case, if you want to download specific files using the API, you should call /2/files/download once per file. You should specify the path of the desired file in the 'path' parameter. (Or,…
-
SwiftyDropbox has been updated for Swift 4 as of v5.0.0.
-
SwiftyDropbox has been updated for Swift 4 as of v5.0.0.
-
[Cross-linking for reference: https://stackoverflow.com/questions/53699757/dropbox-android-sdk-auth-access-token-malformed-when-use-in-dropbox-js-sdk ] Regardless of where/how you got a Dropbox API OAuth 2 access token, you should be able to use it to make Dropbox API v2 calls from any platform. For instance, a Dropbox API…
-
Thanks for the report. This sort of error can occur when these operations take a long time due to a large amount of file activity in the affected account (even if the total number of files at any given time is relatively small). We'll look into it, but there are a few potential workarounds: 1) Use a smaller 'limit'…
-
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers For Python in particular, we recommend using the…
-
That's not an error message from Dropbox itself. It looks like it's coming from whatever HTTPS client you're using. It seems to be indicating that you're attempting to use a value not allowed in HTTP headers. Looking at the string you provided, it's probably because you're using the non-ASCII characters “ and ”. Try using…
-
It sounds like you're trying to connect an app made by a third party developer. They will need to "apply for production" on the app before you can connect to it. You do not need to register your own API app and apply for production yourself. You should contact the developer of the app and request that they do so.
-
Thanks for following up with that. Yes, that would be the way to manually figure this out using the API. Apologies there isn't a more direct way of doing that!
-
Once you share the folder from the originating account using sharing_add_folder_member, you need to "mount" the shared folder in the recipient's account before it would get listed for them. You can do so using sharing_mount_folder. (This is effectively like them "accepting" the invite in Dropbox.) Note that you do need an…
-
The Dropbox Chooser is for having the user select file(s) from their Dropbox accounts to share to your app. It doesn't support choosing the user's entire root/home folder. If you want to save files from your app to users' Dropbox accounts, you should use the Dropbox Saver instead; with that, users can save the supplied…
-
Apologies for the confusion. It looks like the SDK isn't formatting the replacement (non-deprecated) method name in these messages properly. I'll ask the team to get that fixed up. To confirm though, yes, you should use createFolderV2 instead of createFolder, and likewise, deleteV2 instead of delete_.
-
I'm sorry to hear about the difficulty here. The method definitions can change across SDK versions as options are added. You can always find the latest definitions for the file routes in the DBFILESUserAuthRoutes documentation here:…
-
@"Bob S.15" I see you opened a new thread for this, so I'll follow up there: https://www.dropboxforum.com/t5/API-Support-Feedback/uploadURL-unrecognized-selector/m-p/316559#M18784
-
The error is indicating that you're trying to parse some data as JSON, but the data isn't in a valid JSON format, so the parsing is failing. I don't see anything that mentions Dropbox in the error screenshot, nor do I see anywhere that the stack trace in the error that references the code you posted, so I can't offer much…
-
Are you referring to getting the Dropbox accounts that already configured in the official Dropbox desktop client application? You can find the paths to the local Dropbox folders programmatically as documented here: https://www.dropbox.com/help/desktop-web/locate-dropbox-folder#programmatically That only offers a few pieces…
-
Is that all of the error/output you get? An error code of 0 isn't an HTTP status code, so it sounds like something is failing locally or preventing you from connecting to Dropbox at all. Can you share the steps and code to reproduce the issue?
-
[Cross-linking for reference: https://stackoverflow.com/questions/53669144/dropbox-sdk-redirect-to-localhost-after-successful-authorization ] That 127.0.0.1:... page is a being served by the local web server that you control, for the purpose of receiving the access token. Once you receive the access token from the request…
-
You should be passing in the PathLower value in particular when calling DownloadAsync. (For printing, PathDisplay or Name would be appropriate.) I don't see where you're connecting this to your Download method, but make sure you're using PathLower for the actual download call. Name is only the last path component, not the…
-
A 'path/not_found' error indicates that nothing was found at the path supplied. In this case, that's the 'path' variable in your code. It sounds like you're not providing the correct path value for the files you're attempting to access. I can't say exactly what the correct path is in your case, without knowing the state of…
-
Can you share the code you're using? Downloading a file via the API itself shouldn't result in a 460. Are you referring to downloading from a shared link though? A 460 from a link would indicate that the file is inaccessible because it has been marked restricted, e.g., due to a copyright claim. If you believe a file has…
-
1. That's correct, if nothing has changed, you should not get any repeated results across pages. For reference, make sure you're always processing the returned results exactly as documented for listFolder. 2. These cursors don't have any specific timeout, but they can become invalid in certain scenarios. You'll get a…
-
There's a code example for calling this endpoint using curl in the documentation, and you can also generate some code for calling it using the API v2 Explorer. If something isn't working as expected, please share the code you're using and the unexpected error or output.