Greg-DB Dropbox Community Moderator

Comments

  • @"bspindia" Здравко is correct; /oauth2/authorize is a web page, not an API call. It's where you should send the user, in their web browser, to authorize your app.
  • I'm not quite sure I understand your latest question. Can you clarify? Thanks.
  • @"vas1992" Здравко is correct; here's what a simple usage of this may look like: allocation = dbx.users_get_space_usage().allocationif allocation.is_individual(): print("Individual allocation:") print(allocation.get_individual().allocated)elif allocation.is_team(): print("Team allocation:")…
  • You can find information regarding GDPR on Dropbox here. I don't have any plans or changes to share regarding the API in particular.
  • @"bspindia" Здравко is correct; your request is not formatted properly. You should use "Basic" authorization for that particular call, not "Bearer". Also, make sure you supply the necessary parameters as shown in the documentation. Check out step 5 in section 2 of this blog post for an example to translate.
  • @"sundar_papco" I've updated the links in my post. Thanks!
  • @"MightyModest" As Здравко noted, if you're using an official Dropbox SDK, you don't need to implement the refresh process yourself. The SDK will do that for you automatically as long as you provide the necessary credentials. For reference, in the PKCE example Здравко linked to, only the refresh token and app key is…
  • @"DylanC" As Здравко said, take note of what root you're using and make sure you're working in the same location for each user. Also, note that apps with the "app folder" access type get an app folder in each user's connected account, and these app folders do not sync with each other. If you have multiple connected users…
  • @"bspindia" Apps can get long-term access by requesting "offline" access, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation. I don't…
  • The certificates on the Dropbox servers are updated as needed. I don't have a specific history/schedule to share on exactly when that did/will occur. Dropbox works to ensure that the servers are always served with valid certificates, but we don't guarantee we'll always being using a specific root, so we recommend making…
  • @"valosekj" No, I don't have an update on this.
  • @"Joachim_H" While this isn't available/configurable via the Dropbox API as originally requested in this thread, the Dropbox product does offer a retention policy feature that may be helpful.
  • @"jbrede" As Здравко mentioned, unfortunately the Dropbox API doesn't offer the ability to create .gsheet docs like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • I understand you're calling the getTemporaryLink​ method in the Java SDK and are receiving the not_allowed error. That error means: The user is not allowed to request a temporary link to the specified file. For example, this can occur if the file is restricted or if the user's links are banned You may want to check your…
  • It sounds like you're referring to an app with "app folder" access (as opposed to "full Dropbox"). You can move an app folder in your account, but unfortunately currently app folders are incompatible with shared/team folders, meaning you can't share an app folder, put a shared/team folder inside an app folder or put an app…
  • @"Andres Garrido" This issue is still open with the team, but I don't have any news to report yet. I'll follow up here once I have an update on it.
  • Dropbox unfortunately does not offer a way to directly get a link to a folder from an ID like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. There are some things that may work depending on the scenario though: * If the folder itself happens to be a shared…
  • @"PAST-E" That's correct. No action is required on your part.
  • @"cplewisbpe" No, unfortunately this hasn't been added to the API.
  • Thanks for following up, and for sharing your code. It does seem like something is rewriting those requests but unfortunately I can't say what that might be. In any case, I'm glad to hear you got this working. By the way, the /oauth2/token endpoint does accept these parameter either on the URL or in the body, so for…
  • No, there isn't a way to set a folder size limit unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. Apps can still get long-term access by requesting…
  • I see you're supplying a refresh token, app key, and app secret to the Dropbox JavaScript SDK. In that case, the SDK should automatically use those to retrieve a new short-lived access token (the string that starts with "sl.") whenever needed, which it would then use to perform Dropbox API calls (such as…
  • @"msmoe" In the latest code snippet you shared, I don't see where you're attempting to set the request body to contain the file data to upload, so you would get an empty file uploaded. I see you're using "GuzzleHttp" as your network client. That's not made by Dropbox, so I can't offer help with that, but it looks like the…
  • @"qpy" Can you clarify what you mean when you say 'the “root” relative path has been dead end'? I tried it and it did work for me, e.g.: curl -X POST https://api.dropboxapi.com/2/files/list_folder \ --header 'Authorization: Bearer ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data…
  • @"msmoe" I see that the file you have uploaded has a size of 0 bytes, meaning it doesn't contain any data. When uploading files, you'll need to make sure you send the data you want uploaded for that file. For instance, if you're using /2/files/upload, you'll need to send the file data in HTTPS request body, as that…
  • Yes, according to the article, activity is based on "sign-ins, file shares, and file activity (adding, editing, or deleting)", so that should work.
  • Yes, inactive accounts may be automatically disabled after a long period of time. You can find information on that here. It sounds like your app uses "app folder" access though, so it may be likely that some users are accidentally deleting the app folder, since that can be done from any connected client or the web site. In…
  • By default, Dropbox API authorizations for your app don't become invalid and yield 'invalid_access_token' by themselves, but there a number of different ways that a Dropbox API access token can become invalid, including:* the user (or team admin) can revoke all access tokens for an app by unlinking it on any of the…
  • @"Marc_Gandar" I'm not sure I understand your message. Can you clarify? Do you mean you'd like Dropbox to show the unregistered redirect URI that was attempted to be used in the invalid redirect URI error itself? Dropbox does currently do that on that error page, where the text would look like this: Error (400) It seems…