Comments
-
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.
-
Thanks! I just took another look at your code, and it looks like it actually won't process the last page of results. That is, the last call to `files_list_folder_continue` will cause `m2.has_more` to be `False`, which will terminate your `while` loop before that final `m2.entries` is processed. You'll just need to…
-
¿Puedes imprimir el cuerpo de respuesta HTTP? Debe contener un mensaje de error más útil. --- Disculpe nuestras traducciones Nuestras traducciones fueron creadas usando un traductor en línea. Nos gustaría apoyar todos los idiomas, pero actualmente no estamos equipados para hacerlo. Aquí está la versión en inglés: ---…
-
Thanks! We'll look into it.
-
In order to list the contents of a folder, such as a team folder, you should use /2/files/list_folder[/continue]: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue Note that this is a user…
-
For reference, where/how are you getting the 4149 number from? Does it include folders by any chance? In your code, you're only picking out files. Folders would be `FolderMetadata`. Also, note that it looks like your code wouldn't list any files if the account happens to only have one page worth of entries. I.e., it is…
-
I've posted an answer here: https://stackoverflow.com/questions/48036981/how-to-deal-with-errors-in-the-dropbox-java-api/48063776#48063776
-
There's some information about background tasks here: https://github.com/dropbox/dropbox-sdk-obj-c#note-about-background-sessions I don't believe there's a great solution though, as that applies to individual upload requests. Wrapping the upload session calls in a background task will get you a couple of minutes, but it…
-
@"MathanKumar" Can you share the full error/output you're getting?
-
It sounds like you're running in to general network reliability issues. While the API endpoints can technically accept up to 150 MB per request, we generally don't reccomend doing that much, as the connections can become unreliable due to various other factors. Using a much smaller chunk size is usually preferable, e.g., 8…