Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Developers
766 Topicslist_folder is not returning media info
I am sending a request using this endpoint: https://api.dropboxapi.com/2/files/list_folder And sending this data: { "path": "/Otter+Moon", "include_media_info": true, "include_has_explicit_shared_members": false, "include_mounted_folders": true } However, the media info is not being returned. This means that I have to send individual https://api.dropboxapi.com/2/files/get_metadata { "path": "/Otter+Moon/EmmaWolf_OtterandMoon-1.jpg", "include_media_info": true } for each file in that directory. Why? Why is the media info not being returned on the initial request?Team Folder API access in a Standard plan
Forgive me if this information is already available, but I haven't immediately been able to find it. I'm in a scenario where I would like to sync data from a third-party application to team folders in dropbox. My organization is currently operating under a Standard license. I know team folders are a concept in a Standard plan, because I can create them. However, my understanding is that to use the API to send files to them specifically, I need to make use of team folder namespace Ids in my headers. And from what I can tell, there are several API endpoints to retrieve the namespace ID of a given folder, such as team/team_folder/get_info and files/get_metadata. However, while I can hit these endpoints, they do not retrieve any information about folder namepace Ids, and I think what I am now reading is that that information simply isn't available unless you are operating under a Business or Enterprise license. Is this conclusion accurate? Is there a way to retrieve / use team folder namespace Ids under a Standard license, to sync files to specific team folders? If so, how? Thanks in advance for your help, and sorry again if this information is already available and I'm just missing it.Team access not permitted
I have created an app with team scopes, and used a Team admin account to authorize and generate access tokens, following the Oauth guide. I am still hit with errors for multiple business API end points. I even registered this account for a 'Dropbox Business Development' account which was supposed to allow 'testing' for business endpoints but I am met with the same errors. I am referencing the Business and User Endpoint documentation here. For example; '2/sharing/mount_folder' leads to "Unexpected select user header. Your app does not have permission to use this feature" '2/team/members/get_info' leads to 'This token is not associated with a team" error_type:USER_AUTH_NOT_ALLOWED' I am running out of workaround and tests, what am I missing? How do I use my Team account to authorize a 'team' token/app so that I can act on behalf of my team members?Search API not returning deleted files
Hi everyone, I'm using the Search API files/search_v2 and wanted to search for deleted files. The documentation claims that `file_status` can be used to restrict the search to the given file status. I'm doing a simple search as below, but I don't get the expected results: { "options": { "file_status": "deleted" }, "query": "deleted_file" } I've tried all kinds of combinations, but I'm still not getting correct results. Has anyone been able to make this work, or am I doing something wrong?/files/list_folder do not return entries correctly when filtering
I'm developer of an app that uses Dropbox API to fetch folders from the root of user's account. For most users the request works just fine, but there are some scenarios where a user have a lot of deleted files and folders in the root, in this scenario the API is not returning the entries correctly when filtering using `include_deleted=true` and `limit=100`, instead of excluding the deleted and returning the remaining entires up to the limit it returns only 1 entry, that is exactly the one that is not deleted from the first page of the request done with `include_deleted=false`, even using without limit it still fail to return all non-deleted entries in the first call, the user that raised this issue have 26 non-deleted folders in the root and 1 file, so it should be returned in just one page regardless of the limit, but the API apply the limit before the filterring. Am I doing something wrong or is there a way to fix this?172Views0likes3CommentsWhich is the java version supported by dbx sdk 7.0.0
Hi, I would like to upgrade dropbox-core-sdk from version 4.0.1 to 7.0.0. Currently, I'm using Java JDK 8. According to the Dropbox documentation, this SDK appears to be compatible with JDK 8. However, version 7.0.0 has a dependency on jakarta.servlet-api 6.0.0, which is based on JDK 11. I'm a bit confused: can I update the code without upgrading my JDK, or is it necessary to switch to Java 11? Alternatively, is it possible to compile the code using JDK 11 but still run it on JDK 8?SolvedDropbox download via API unstable under Pyodide (xlwings lite)
I am using the Python dropbox module to download files in pyodide (actually xlwings lite). I see that quite often a file is not downloaded completely, without even raising an error. Is there a workaround or patch or ... ? Uploading files seems to work as expected.Getting {"error": "invalid_grant", "error_description": "invalid code verifier"}
I'm using PKCE flow https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token in my react native expo app for generating the token. I'm able to generate code & state value successfully after hitting this url https://www.dropbox.com/oauth2/authorize But when i trying to get the access token using below ``` const params = new URLSearchParams({ code, grant_type: "authorization_code", client_id: DROPBOX_CLIENT_ID, code_verifier: codeVerifier, redirect_uri: redirectUri, }); console.log("PKCE params", params.toString()); const response = await fetch("https://api.dropboxapi.com/oauth2/token", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded", }, body: params.toString(), }); ``` I'm getting this error {"error": "invalid_grant", "error_description": "invalid code verifier"} I've verified that the code challenge and code verifier are correct and are passed correctly into the request. Stuck on this for hours now, need help. ThanksDropbox API Inquiry
I have to query the Dropbox Search API with a Team access token (i.e. scope team_data.member enabled). I learned that I have to include the 2 HTTP headers in the search API for my use case to work properly: Dropbox-API-Select-User: dbmid:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "XXXXXXXXXXXX"} That implies I have to call /users/get_current_account for every search API call unless I cache those values. Is there any way I can bypass putting these headers? Why can't Dropbox API extract the user ID via the access token instead? That's an OAuth2 standard. I have to enforce the file search in both user and team folders, hence specifying Dropbox-API-Path-Root. By answering the following questions, it will help me if I can hardcode this namespace_id for my use case: Is it possible for an organization/user to have multiple Dropbox teams? Is it possible for an organization to have multiple namespace_id? How is a namespace and team correlate to each other? When two different users in the same organization logged into Dropbox, is it possible they can have different root_namespace_id when they call /users/get_current_account?252Views0likes3Comments