Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Developers
767 TopicsTeam 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?192Views0likes6CommentsSearch 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?94Views0likes3CommentsWhich 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. Thanks105Views0likes1CommentDropbox 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?219Views0likes3CommentsProblem with list_revisions and revision download of very old files
I have an old file that is over a year old. When I call list_revisions on this file, all the history is displayed. All revisions have is_downloadable set to true. However, when I actually download the revision, it returns an error saying not found. When I call restore, it returns an invalid_revision error. When I look at the history on the web page, only the current revision is displayed, and past revisions are not displayed. I can't find the difference in information between the old file and the new file's revision list on the API. Is it possible to filter out revisions that cannot be downloaded or rolled back from the old file's revision list?217Views0likes4CommentsHow to download .paper and .papert shared file using APIs
I want to download the shared files having paper and papert extension but since shared files, I list the files using sharing/list_received_files and in this I get the preview_url for the shared file, I use the preview_url to download to the content using sharing/get_shared_link_file but I get unsupported_link_type error in the API response. I tried using the files/export API using id in the headers to export html but then I get path/not_found/ error in the API response. How can I download paper and papert file content for a shared file.