Comments
-
Я буду рад помочь, но мне понадобится дополнительная информация. Пожалуйста, ответьте: * номер версии используемого вами Dropbox SDK * размер файла, который вы пытаетесь скачать * полный текст любой ошибки или неожиданного вывода * время, необходимое для вызова API, прежде чем возникнет проблема -----------– Пожалуйста,…
-
1. Short-lived access tokens, such as retrieved by authorizeFromControllerV2, do expire after four hours. The authorizeFromControllerV2 method actually requests "offline" access though, so it receives a refresh token in addition to the short-lived access token. 2. If you use authorizeFromControllerV2 as documented, the SDK…
-
[Cross-linking for reference: https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder ] A 'to/conflict/folder' error indicates that the move failed because a folder already exists at the specified destination path. When moving something via the API, the destination path you…
-
I don't have any change to report on the web view policy. You can find the release history and notes for the official Dropbox API v2 .NET SDK here: https://github.com/dropbox/dropbox-sdk-dotnet/releases
-
That error message indicates that the call failed because that /2/sharing/get_file_metadata endpoint doesn't support apps with the "app folder" access type, as noted in the documentation. I don't have context on your use case, but for reference, if just you want to create a shared link for the uploaded file, you should use…
-
Can you print out the response body? It should contain a more specific error message.
-
Yes, if you need long-term access without having the user re-authorize, you should request "offline" access to get and use a refresh token to get new short-lived access tokens as needed. There's a "PKCE-backend" example that shows how you can request this kind of access, and then set the resulting refresh token using…
-
When using the Dropbox Chooser, it will return the link to each selected file in the "link" field of the returned object for each file. I see you're using "linkType" of "preview" here. If you just want to download the selected file data, you should use a "linkType" of "direct" instead. That will make the returned "link" a…
-
Si desea incrustar el contenido de un enlace compartido de Dropbox en una página web, debe utilizar el incrustador de Dropbox: https://www.dropbox.com/developers/embedder Si aún no lo está utilizando, pruébelo. Si ya lo está utilizando, comparta los pasos que está siguiendo y muestre el error / resultado que está…
-
Dropbox does offer an official .NET SDK for Dropbox API v2, which you can find here. That comes with several example apps, including sample code updated for the new authorization functionality, such as in OauthBasic and OAuthPKCE.
-
Yes, we got the docs back up. It looks like the DropboxTransportClient class in particular isn't being included in the documentation though. I'll see if we can get that done.
-
The /2/files/download endpoint can only download files in the connected account. "Received" files, such as listed by /2/sharing/list_received_files, aren't mounted in the connected account, and so cannot be downloaded that way. You can instead use /2/sharing/get_shared_link_file and pass in the "preview_url" as the "url"…
-
That file is not inside a shared folder. It is only individually shared. That's a different kind of sharing, and so sharing_info won't be returned for it.
-
@"1PoC1" I don't have an update on this request to share. I'll follow up here if/when I do.
-
I see you're using the Xamarin.Dropbox.Api which is not an official Dropbox SDK. It's owned by Microsoft and Xamarin. That would need to be updated for the new authorization functionality. It looks like it hasn't been updated since 2017 though, so you may want to contact them to see if they will update it.
-
@"sahir" I don't have anything to add on the Dropbox side. The Dropbox API still offers both of these pieces of functionality, so it would be up to Zapier to update their implementation.
-
Yes, those are optional so you can set them to nil, except for "accessToken", but it looks like you can just set that to an empty string, assuming you're using the standard authorization functionality such as authorizeFromControllerV2 and authorizedClient which will take care of that for you.
-
Thanks for letting us know about the broken docs page! I'll ask the team to fix that up. Anyway, the equivalent of setting that custom identifier in the SwiftyDropbox SDK would be to set the "userAgent" parameter when making a "DropboxTransportClient", like seen here.
-
While you can plug in an access token for your own account like you showed here, the API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. That's accomplished by implementing the OAuth flow in your app, so that each user can authorize the app to…
-
The same tokenRevoke method can be used with the new short-lived access tokens as well. Calling it will revoke the short-lived access token used, as well as the corresponding refresh token and other short-lived access tokens for that refresh token, if any. Just performing an access token refresh does not invalidate…
-
If you don't specify "scope", it will default to requesting the set of scopes enabled for your app (on the App Console) at the time of authorization.
-
No, the authorization functionality for Android in the Java SDK automatically requests "offline" access (i.e., to retrieve a refresh token), and doesn't offer the ability to configure that. I'll pass this along as a feature request, but I can't promise if or when that might be implemented. (For reference, the DbxWebAuth…
-
The sharing_info field is optional, meaning that it will not always be returned. The sharing_info field is documented as: sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional. So, since there is no sharing_info in this result, that indicates that this file is not in a…
-
The file request listing functionality doesn't return new updates to file requests that have already been listed like this. If you want to get the latest information about a file request, you should call /2/file_requests/get for a particular file request, or start from /2/file_requests/list_v2 again to list all of the file…
-
@"mukund" Unfortunately I don't have more specific information to share as to when 'owner_display_names' should or shouldn't be expected in the response. I'll send this along to the team to request more specific documentation on that, but I can't promise if/when that would be updated.
-
The error from the Dropbox API here "Error in call to API function "files/search": request body: missing required field 'query'" indicates that the call was rejected because it did not include the required parameter "query". From the code you shared though, I see you are setting the "query" parameter for the "filesSearch"…
-
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers You may want to check out the Getting Started guide:…
-
That's correct, you don't need to call refreshAccessToken yourself. As long as you set things up as instructed, the SDK will handle all of that for you. And yes, as long as nothing specifically happens to invalidate the refresh token (such as the user unlinking the app, deleting their account, etc.) the refresh token will…
-
There isn't a big difference here. By setting the "-1L" expiration that makes the SDK immediately perform a refresh regardless of the actual expiration. The SDK will still handle the refresh process as/when needed though in either case, as long as the necessary pieces are given. (For PKCE, it only really needs the refresh…
-
The /2/files/list_folder and /2/files/list_folder/continue endpoints do not restrict you to listing files that have changed since a certain date (nor do they offer date filters exactly). They can be used to list the full contents under any path, such as a specific folder or the root folder (identified by the empty string…