Comments
-
You do need to use the full path when specifying the file you want to download. Using files_list_folder and files_list_folder_continue will give you every entry, and you can get the full path from the returned (File)Metadata.path_lower. (I.e., use `entry.path_lower` instead of `'/'+entry.name`.)
-
Algunos sistemas operativos tienen límites de longitud de caracteres, pero la API de Dropbox no lo hace. Si tiene problemas con la API en sí, comparta el resultado completo de la llamada API fallida. --- Disculpe nuestras traducciones Nuestras traducciones fueron creadas usando un traductor en línea. Nos gustaría apoyar…
-
It sounds like you're referring to the behavior of the Dropbox OAuth app authorization flow where, if the user has already authorized your app, then they may be automatically redirected back to your app instead of having to provide explicit authorization again. If the user fully revokes the app's authorization, e.g., via…
-
The ListFolder/ListFolderContinue functionality is paginated, meaning that each call to ListFolder or ListFolderContinue will only contain a portion of the overall results. In your second piece of code, you're overwriting the `list` variable with each call to ListFolderContinue without reading what it contained from the…
-
Can you share the code you're using and a sample URL that reproduces the issue so I can take a look? Thanks in advance!
-
@"jianwen" Thanks for following up. I'm glad to hear that search is working properly for you again. I believe you should automatically get emailed when there's a new reply on a thread you're following, or when you're mentioned. I can't offer support for the forum itself, but I recommend making you're following any threads…
-
If you're seeing these fail quickly, please open an API ticket with a sample we can reproduce the issue with so we can look into it: https://www.dropbox.com/developers/contact Thanks in advance!
-
That's correct, the `path` parameter value for files_download_to_file should be the full remote (Dropbox) path of the file you want to download. Using files_list_folder is the right way to list files and folders under any particular path. (Use the empty string "" as the path for root if that's what you're looking for.) If…
-
Is that the exact code you're running? Running that, I get `malformed_path` on your `to_lookup`, not `from_lookup`. (Perhaps you reversed them when simplifying the code for posting here?) Anyway, your `to_lookup` value is malformed. It ends in a "/". It shouldn't end in "/", and should instead include the full path where…
-
It sounds like you're referring to still being signed in to the Dropbox web site (www.dropbox.com) itself in the browser. This is unrelated to the API/access token. To sign out of the web site, the user can do so themselves via the "Sign out" link, or the app can direct them to https://www.dropbox.com/logout .
-
Thanks! The API is indicating that the request wasn't valid. This particular error message isn't too specific, but it seems to be indicating that the necessary information wasn't given. Looking through your code, you appear to be sending the parameters as JSON. The /oauth2/token endpoint…
-
It looks like this is a duplicate, so I'm closing this in favor of: https://www.dropboxforum.com/t5/API-support/OAuth2-access-token-request-Basic-authentication-not-working/m-p/259164#M15054
-
That path value itself appears correct. (The '\' characters would be to escape the '"' characters, but that may or may not be necessary depending on your client/environment.) Getting the response body is the right way to begin debugging this. Exactly how you do so depends on the particular HTTP client you're using though,…
-
That appears to be the response headers only. Can you print the response body?
-
What is the content of the body for 400 HTTP response? It should contain a more useful error message.
-
I tried running the code you posted and was able to reproduce the issue of it dropping the last page. Here's a fixed version: dbx = dropbox.Dropbox(oauth_result.access_token) result = dbx.files_list_folder("", recursive=True) file_list = [] def process_entries(entries): for entry in entries: if isinstance(entry,…
-
That's correct.
-
Hi Mark, no unfortunately I don't have news on this. The Dropbox API doesn't offer any support for interacting with Dropbox MDM functionality or signing in automatically.
-
Thanks for the post! The Android Chooser integration does require the official Dropbox app, as the Chooser itself is actually part of the official app. I'll send this along to the team as a request to make that clearer. Anyway, this is the only information we have posted for the Android Chooser:…
-
It is possible to access all team member files via a Dropbox Business API app with the "team member file access" permission, using the "member file access" feature. In short, once a team admin authorizes such an app to access their team, the app can use the user API endpoints to list and download files from any team member…
-
@"Wei O." That rate limit is the same for all account types.
-
@"jianwen" Are you still seeing this issue? We did fix a general issue yesterday that could have resulted in missing search results.
-
I'm referring to the second call to files_list_folder_continue at the end of the while loop.
-
That's almost correct, but to clarify, there are two different kinds of property templates: user-owned (created by /2/file_properties/templates/add_for_user) and team-owned (created by /2/file_properties/templates/add_for_team). To add file properties to a file for a team-owned property template, you need to use a team…
-
Here's an example of how this would work: var dbx = new Dropbox({ accessToken: 'ACCESS_TOKEN_HERE' }); dbx.authTokenRevoke() .then(function(response) { // the access token for `dbx` has been revoked console.log("got authTokenRevoke response:"); console.log(response); // this should fail now: dbx.usersGetCurrentAccount()…
-
Wir haben speziell keine benutzerdefinierte Unterstützung für OwnCloud, obwohl Anwendungen von Drittanbietern bereits integriert sind, um Dropbox-Funktionen in OwnCloud zu integrieren. Auf der Dropbox-Seite bietet Dropbox unter anderem eine API, mit der Sie Dateien hochladen und herunterladen können. Was du damit machst,…
-
The /2/file_properties/properties/add endpoint documents 'restricted_content' as "You do not have permission to modify this template." That can happen for a few reasons, but it sounds like in your case you're using a user access token (e.g., for a "Full Dropbox" app) to try to add file properties for a team-owned template,…
-
To revoke an access token using the JavaScript SDK, you should use authTokenRevoke: https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#authTokenRevoke__anchor Then, you can just throw away the old access token and start the app authorization flow over if/when necessary, e.g.,:…
-
There are a few things you can do depending on exactly what kind of "disconnect" functionality you're looking for. There's a discussion here that covers several different options: https://github.com/dropbox/dropbox-sdk-java/issues/92
-
Can you print the response body for the 400 error? It should contain a more useful error message.