Comments
-
@"mansi2821" I see you've also posted this in a new thread, so I'll follow up with you there. For future reference, please note it is not necessary to post the same question in multiple threads.
-
That's correct, the official Dropbox .NET SDK does not offer a way to retrieve the latest short-lived access token that it has, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That's not needed for the operation of the .NET SDK though. You don't actually need to…
-
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the Dropbox SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh…
-
I see, thanks for the additional information. Unfortunately the Dropbox Chooser doesn't support direct links for folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. And Dropbox shared links on www.dropbox.com themselves unfortunately don't support CORS, so…
-
To list all files/folders under an account, you can use files_list_folder and files_list_folder_continue, specifying recursive=True and path="" (the empty string) on files_list_folder. You can do so for each team member, but be aware that there may be duplication if you do so, since members may have shared folders and/or…
-
The issue for sharing_list_folders is currently open with engineering, but I don't have an update on it yet. I've also opened the issue for sharing_list_shared_links and will follow up here with any updates on that as well.
-
For a user not on a team with a team space, you can just use sharing_list_shared_links, without setting the path root, to get all the shared links for that user, since their member folder is their root anyway. For a user on a team with a team space, you should still use sharing_list_shared_links, but you would need to set…
-
Thanks for checking. Please do use sharing_list_shared_links instead. (The sharing_get_shared_links method is deprecated in favor of sharing_list_shared_links.)
-
Thanks! I see this one is for sharing_get_shared_links though. Can you try sharing_list_shared_links and let me know if that fails or not?
-
Could you share the same sort of output showing a request ID for that one as well? Thanks in advance!
-
You can use the Dropbox API to list the shared links for a user. In the Python SDK, you should use sharing_list_shared_links. Note that by default though, that only lists links in the user's member folder. If the user is on a team with a team space, and you need to list their shared links in the team space, you'd need to…
-
It looks like this operation is failing on the server. We'll look into it and I'll follow up here once I have an update for you.
-
There shouldn't be anything unusual about your app key in particular. To check that though, you could try replacing my app key in the sample project with yours and retesting it. Please try that and let me know how it goes.
-
Dropbox doesn't offer an official SDK for PHP in particular, so you'll need to either call the HTTPS endpoints directly, or use a third party library. To list all of the "namespaces" (which includes shared folders) for the team, you can use the /2/team/namespaces/list[/continue] endpoints. To get the metadata for a shared…
-
Can you elaborate on what you mean when you say it's "not working"? What error or unexpected output do you get? Looking at the code you provided though, there's a few things to note: * It looks like you're not setting the "linkType" option, so it will default to "preview". In a case like this where you need to retrieve the…
-
No, the official Dropbox .NET SDK does not offer a way to retrieve the latest short-lived access token that it has, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
A 'path/not_found' error from /2/files/list_folder indicates that nothing was found at the specified "path" in the connected account. Note though that paths will be relative to the root for that call, which will depend on the access type of the app being used. For example, the API Explorer's own app is registered for "full…
-
If you only want your app to connect to your own account, and for more than a few hours without manual intervention, you should use the OAuth app authorization flow and process it once yourself to get a "refresh token" for your own account. That particular refresh token will always be only for your own account and will not…
-
In this code I see references to "Panther.Services.DropboxService" and "DropboxFileSystemProvider", which are not classes/types written by Dropbox, so unfortunately I cannot offer support for those. You'll need to refer to the documentation/support resources for those third party objects. Also, I don't see it referencing a…
-
Yes, team folders are considered a type of shared folder, so just building on the previous sample, you can do something like this: team_folder_count = len([shared_folder for shared_folder in shared_folders if shared_folder.is_team_folder])if team_folder_count == 0: print('User has no team folders')else: print('User has at…
-
[Cross-linking for reference: https://stackoverflow.com/questions/73558139/check-if-a-user-has-access-to-any-shared-folders-in-dropbox ] Yes, for the Python SDK, using the sharing_list_folders/sharing_list_folders_continue methods is the right way to list the shared folders that a user account has access to. The Dropbox…
-
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or…
-
Since it fails on that server but works otherwise, it sounds like there's something about that server setup that is preventing your code from successfully making the HTTPS connections to the Dropbox API servers. Is there anything on that network connection, such as a firewall, VPN, proxy, anti-virus, etc., that may be…
-
I don't see anything wrong in this snippet of code, and it runs successfully for me. When you say "basic stuff like getting the email address of my account works well", it sounds like you're referring to the GetCurrentAccountAsync method. For comparison, that method calls api.dropboxapi.com, whereas methods that interact…
-
It sounds like the file in question may be in the "team space". By default, API calls operate in the "member folder" of the connected account, not the team space, so by default files in the team space will not be found and will result in an error like this. You can configure API calls to operate in the team space instead…
-
Building a DropboxClient with the refresh token, app key, and app secret as you've shown here is correct and valid. Are you sure that is the specific DropboxClient object you're using when you're getting that 'expired_access_token' error? I just tried it and it is working for me with my own values. Note that an 'ExpiresAt'…
-
This appears to be a duplicate of this other thread. I'll close this one and follow up there.
-
That's correct, whether using PKCE or not, use of a redirect URI optional. Using PKCE just eliminates the use of the app secret in favor of a code challenge/verifier (which the SDK PKCE flow handles for you).
-
Thanks for the note. We'll get that fixed up in the next build of that GitHub page.
-
The .NET SDK documentation is currently available here. Click the "API Documentation" link at the top to access specific classes/methods. The PKCE flow is the right thing to use for client-side apps, such as desktop apps. The SDK will still do most of the work for you. You can find an example of using the PKCE flow with…