Comments
-
I'm not sure off hand what the issue may be, but calling `if result.has_more` for each `entry` doesn't look like what you'd want to do. Once you're inspecting a particular entry, it shouldn't matter if there is another page of entries to retrieve (since you've already retrieved the entry you're operating on). I recommend…
-
Dropbox OAuth 2 authorization codes can each only be used once. (You should just use the authorization code once, but you can store and re-use the resulting access token.) The "code has already been used" error message should just indicate that the authorization code you're supplying has already been used. I just gave the…
-
You don't need to escape the "/" characters in the the shared link URL you send to Dropbox. Are you actually sending those "\/" like that, or is that just some special escaping you need to do first in your environment? Even if so, you're missing one in the initial "https://". The "url" value you send should look like:…
-
Dropbox does offer another way for programmatically downloading files from shared links, as documented here, but that doesn't offer an option for specifying a password. So, if you need to password-protect the link, that won't work. Dropbox doesn't offer anything like this beyond these two methods though.
-
@"TateFF" No, unfortunately I don't have any news on this request.
-
The /2/sharing/get_shared_link_file endpoint does currently only support "user authentication" so it does require an access token. I'll pass this along as a feature request for a way to call this without an access token, but I can't promise if or when that might be implemented.
-
Yes, when using upload sessions, you can set the 'client_modified' when you commit the file via /2/files/upload_session/finish using the 'commit.client_modified' parameter. (Likewise, if you're using /2/files/upload_session/finish_batch, it's the corresponding 'entries.commit.client_modified'.) You can click on the types,…
-
@"LRomano" Thanks for sharing the error. That 'from_lookup/not_found' error does indicate that the issue is that the 'from_path' value doesn't point to anything. That does seem to be because you specified just the name and not the path, as discussed. The Metadata.path_lower value is just a string containing the path for…
-
@"Jens S.1" Thanks for the feedback!
-
Do you want to transfer this member’s file content to another team member? This option lets you copy all of the files and folders from the deleted member's account to another member's account. That way, your team can keep access to the files from the deleted account, if needed. Do you want to delete content from this…
-
You can find more information on the process of and options for removing a member from a team on Dropbox in the help center here. This functionality is available via the Dropbox Business API as the /2/team/members/remove endpoint. The options you pointed out are available on that endpoint via the…
-
The /2/sharing/get_shared_link_file endpoint is the right way to download a file from a shared link using the Dropbox API, and the code samples looks correct in general. Based on the output you shared, it looks like the issue is with the formatting/escaping of the characters in the sample for the environment you're using.…
-
I just gave this a try and it looks like the Dropbox API itself is working properly. I can't officially provide support for axios, but it looks like the issue is the callback function definition you're using. The axios client apparently just returns a single result variable, not a pair of `req, res` like you're trying to…
-
@"LRomano" What errors are you getting now? Looking at your code, I expect the issue is that you're not specifying the correct file path for the file to move. The Metadata.name that you're using is just the name of the file, not the full path. To get the full path, including any parent path components, you would need to…
-
It sounds like you're using the "code" flow, so Dropbox will return an "authorization code", not an access token. When using the code flow, once you receive the authorization code, you need to then exchange it for an access token using /oauth2/token. Check out the /oauth2/authorize and /oauth2/token documentation for more…
-
That is the text you can use as trademark attribution for Dropbox, but I can't provide legal guidance, such as for writing or structuring the terms/license agreement for your app. I recommend you contact a legal professional for any assistance you need with that.
-
@"hahmed44" I did not investigate the errors in detail. You'll need to use the browser's developer tools to inspect and debug them. it's certainly possible they are related to the issue you're having with your player. I didn't see anything broken on the Dropbox side, but let us know if you find an issue with Dropbox itself…
-
Are you looking for a trademark attribution for Dropbox? If so, please use this attribution: DROPBOX and the Dropbox Logo are trademarks of Dropbox, Inc. Otherwise, for help drafting your terms/license, you should contact a legal professional.
-
The /2/file_requests/get endpoint is for retrieving the information about a 'file request', not a file itself. (A "file request" is a way to receive files from other people.) To get the data for a particular file, you should instead call /2/files/download.
-
@"dclancer" Can you elaborate on what you're trying to do? This thread was originally about accessing a particular piece of functionality via the Dropbox API. If you're not a programmer using the Dropbox API, you may be better served in this section of the forum instead.
-
@"FJBDev" I don't have any update on this request, and I'm not aware of any current plans to implement it.
-
When calling /2/sharing/get_shared_link_file, 'url' would be the shared link URL, and 'path' would be the relative path for the file you want. So, for your example above, you could use: 'url': 'https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0' 'path': '/Papa Smurf.pro'
-
Yes, thanks, that's visible now. It looks like you're trying to call the Route object itself, but those aren't the methods for making API calls. To move or rename a file, you should use dropbox.Dropbox.files_move. You can find some basic examples of making Dropbox API calls using the Dropbox Python SDK in this example,…
-
I see, thanks! I'll ask the team to see if we can get that fixed up to show there for file requests created via the API as well.
-
The /2/files/download endpoint only supports downloading files in the connected account, so this error is expected in this case. For this use case, you'd instead need to use /2/sharing/get_shared_link_file (sharingGetSharedLinkFile). Both of those only support "user authentication" though, so an access token is necessary.…
-
Your image unfortunately is not loading. Can you try sharing that again?
-
I'm not sure I understand your current setup. To clarify, are you trying to import the official Android example for the Dropbox Java SDK into your own third party application? That's just intended as a sample, and not something you would import into your own app. You can follow the instructions here to build and run that…
-
Thanks for the report! I just gave this a try though and it appears to be working properly for me. I also tried making one with this code, slightly modified to make the deadline a few seconds in the future, and the file request properly expired for me. Can you elaborate on what you mean when you say "it doesn't seem to…
-
@"entotto" Thanks for the feedback! I'll pass this along to the team. @"euxn" No, unfortunately I don't have an update on this.
-
Apologies, I should have pointed out OKHttp in particular is a bit of a special case here, since it's considered optional when using the SDK. I see you're trying to use the Android example app though, which does use OKHttp, so you'll want to include that dependency. There's a note about this here:…