Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
APIs
28 TopicsOAuth broken (Missing client_id) if force_reauthentication=true
Hello, Today it is not possible to authorize an application using OAuth if the parameter force_reauthentication is set to true (force_reauthentication=true) The same error is displayed with the parameter prompt=login For example this url: https://www.dropbox.com/oauth2/authorize?client_id=6m49bsosxta8vpm&state=188620817&response_type=code&force_reauthentication=true&redirect_uri=http%3a%2f%2f127.0.0.1%3a35831%2f&token_access_type=offline&code_challenge_method=S256&code_challenge=omq_TXM9aH8GIlhUx6xT9-D20Ckz6Z46LMrWU2_uOn0 shows the error Missing client_id although the client_id is included in the request. However, the same url but with force_reauthentication=false works fine: https://www.dropbox.com/oauth2/authorize?client_id=6m49bsosxta8vpm&state=188620817&response_type=code&force_reauthentication=false&redirect_uri=http%3a%2f%2f127.0.0.1%3a35831%2f&token_access_type=offline&code_challenge_method=S256&code_challenge=omq_TXM9aH8GIlhUx6xT9-D20Ckz6Z46LMrWU2_uOn0 Please check it as soon as possible as the users are not able to link their accounts with our applications.51Views0likes3CommentsDropbox Cursor Behavior
Hello, I'm trying to confirm cursor behavior. - Is it safe to assume that Cursor is an offset into a transaction log per account, which is a sequential record of changes as they occurred in the account. In other words, clients that traverse dropbox do not walk through their repository (i.e. the "tree" of content) looking for content; instead, the client enumerates changes sequentially as they occurred in Dropbox.16Views0likes0CommentsProblem accessing Dropbox API from an embedded device
I’m using a Seeed Studio XIAO ESP32S3 board programmed with Adafruit CircuitPython 9.2.7. I have written a very lite “SDK” to be able to issue requests to Dropbox API (V2) for a limited number of operations: (re)authentication, get_user_account, list_folder, upload_file. My code is available here https://github.com/istvanzk/xiaocam_cpy The initial OAuth2 authorization works fine. I request "offline" access during the OAuth app authorization flow on a development machine, not the XIAO board. Then I use the received "refresh token" (stored in settings.toml) to programmatically get a new short-lived access token at any point in time, without further manual user interaction, in the code running on the XIAO board. Problem: I'm having a strange error when sending any POST request to Dropbox API (V2) host and route, e.g. to https://api.dropboxapi.com/2/users/get_current_account and with the headers set according to the https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account info. Authentication token is correct because it works after the below described ‘fix’ below. The error "OSError: [Errno 116] ETIMEDOUT" is thrown by a socket.recv_into(result) line (from the original adafruit_requests.py implementation code) meant to check the first character/byte of the response from the server (checked to be “H”). Strangely the only way I found to 'solve' this error here was to insert a time.sleep(0.02) before each of the corresponding request data is sent with socket.send() The observed error is described in more details in the https://github.com/istvanzk/xiaocam_cpy?tab=readme-ov-file#adafruit_requests_fix section, with additional discussions and attempts to debug it on the Adafruit_CircuitPython_Requests issue #209. The error can be reproduced using the https://github.com/istvanzk/xiaocam_cpy/blob/main/dbx_test.py code when the original adafruit_requests module is used instead of my modified https://github.com/istvanzk/xiaocam_cpy/blob/main/adafruit_requests_fix.py. Question #0: Is there a particular way the Dropbox API server handles the socket requests/connections? I could not find anything in particular when going through the official Dropbox API Python SDK code, but I might have missed it. Question #1: After applying the 'fix' described above, the image file upload times are unexpectedly very large e.g., it was approx. 20 seconds for an image of 50KB. Combined with Q#0 it seems the connection is somehow rate limited but I was not able to find the reasons for this. NOTE: I had to remove all links in this post due to the86Views0likes4CommentsStyling Dropbox Embeds to Match New Website Background on Squarespace
Hi everyone! I manage a website and we’re updating the background design to better reflect our brand. We currently use Dropbox shared links and embedded folders to share brochures and project files with clients. As we change the site background (possibly using gradients or images), we want to ensure that the Dropbox embeds remain visually consistent and responsive. Does anyone have experience with styling Dropbox embeds (via CSS or custom code) so they blend well with new backgrounds on platforms like Squarespace? Any suggestions or best practices would be greatly appreciated. Thanks in advance!Create new folder in existing Team Folder
Hi, I use a web site development program called Wappler which allows for the setup of API's It has a section for the URL of the API, JSON DATA and I can add headers. I used the default: https://api.dropboxapi.com/2/files/create_folder_v2 and added the headers: "Authorization: Bearer <my token here>" \ "Content-Type: application/json" \ and in the Json Data box I put: { "autorename": false, "path": "/Homework/math/{{$_POST.foldername}}" } This works OK and creates a folder from my form input to my home folder inside a folder called Apps> Homework/math/myfoldernamefrom form I want to create the folder in the team space so I added the Dropbox-API-Path-Root header and the value {".tag": "root", "root": "7"}, along with the following in the Json Data: { "path": "{{$_POST.foldername}}" } I know the 7 is just a sample and I have the details of my user ID, at the bottom is the root_info, with .tag, the root_namespace_id, the homespace_id and my home_path. What do/would I put in the Json Data to create a folder in team space called CompanyOne>FolderOne Many thanks for your helpHow to filter events in dotnet SDK ?
I want to only query the team events of the event type file_download. I can't seem to figure out how I'm supposed to do it the way the developers intended. I can't find clear documentation on how to do this. GetTeamEventsResult events = await _dropbox.TeamLog.GetEventsAsync(eventType: WHAT DO I PUT HERE); I tried doing this: GetTeamEventsResult events = await _dropbox.TeamLog.GetEventsAsync(eventType: new EventTypeArg().AsFileDownload); But that just returns all events and doesn't filter them.72Views0likes2Commentssharing/remove_folder_member endpoint throwing 500 error
I've been using the api.dropboxapi.com/2/sharing/remove_folder_member endpoint for a number of years without issue. After the scheduled maintenance last night (2025-02-06) I'm receiving a 500 response from all calls to it. I'm doing a POST call with the following headers: Dropbox-API-Path-Root: {"namespace_id":"999999",".tag":"namespace_id"} Dropbox-API-Select-User: dbmid:AAAAAAAAA and the request: { "shared_folder_id":"99999999", "member":{ ".tag":"dropbox_id", "dropbox_id":"dbmid:AAAAAAAA" }, "leave_a_copy":false } (IDs all changed) Is anyone else using this endpoint in the same way? Is it still working for you? Maybe something changed as part of the maintenance? Seems too much like a coincidence that this code no longer works. Thanks for any help.128Views1like8CommentsRegarding the condition that "folder_id" is returned in "/sharing/list_folders".
I have a question about the "/sharing/list_folders" API. According to your API reference, the "folder_id" field in the response body is optional. Please tell me the conditions under which "folder_id" is returned. Thank you for your support.52Views0likes1Comment