Comments
-
I tried a snippet nearly identical to yours on php 7.4.28 and it worked for me, though php seemed to like me setting the content type & accept headers as well: $headers[] = "Content-Type: application/octet-stream"; $headers[] = "Accept: application/octet-stream"; I'm not 100% sure what the error is from just the image. I'd…
-
Setting the HTTP header Dropbox-API-Select-Admin to the member id of a team administrator will enable you to read this. This article describes HTTP headers that can be added to to the user API to simplify acting on behalf of a user/admin or reading team-owned content.
-
In addition to the techniques mentioned in this thread, I would also suggest traversing with include_mounted_folders=false. Mounted folders refer to folder shares or team folders. With that option, the mount point (shared folder id) is still returned in the output, but not the share's content. You could then traverse the…
-
To confirm, you're observing (1) that the search endpoint is returning a deleted folder when you specify active content only, and (2) that the returned search result also reporting that it is not deleted? I'm not able to reproduce that behavior. A couple questions: * How are you sure that the deleted folder is actually…
-
The errors returned by sharing/create_shared_link_with_settings give you a good sense of the primary cases to check for. * Users must have their email verified in order to share links - else they receive an email_not_verified error. You can check for email verification in users/get_current_account * A link may already…
-
The path_display attribute returned in file metadata shows a path to the content within the user's Dropbox; it is not browser accessible URL. The Dropbox API has files/download & files/get_thumbnail_v2 calls that will enable you to retrieve binary content for use in your application - but you'll need to manage making that…
-
The Dropbox API allows you to request refresh tokens, which will allow you to request new access tokens. Refresh tokens are long-lived, so they will enable the same use cases as a long live access token. The Oauth Guide describes their usage and how to request them.
-
The latest .NET SDK has a good example of using refresh tokens in the OauthBasic example. Be sure to pass the tokenAccessType: TokenAccessType.Offline parameter when constructing your url with GetAuthorizeUri in order to get a refresh token. The refresh token can then be passed DropboxClient, which is also shown in the…
-
This should be resolved now. Please let us know if you're still seeing any issues.
-
This is the Python SDK, correct? calling print(dbx.files_list_folder("")) will show the full ListFolderResult object. To iterate over the results and print just the path, you'll want something like this: res = dbx.files_list_folder("") for entry in res.entries: print(entry.path_lower) That will return valid paths that you…
-
On September 30th, we will stop issuing new long lived tokens. Existing long lived tokens will not be invalidated; this will not break for existing users. You can re-auth existing users to get them on to refresh tokens.
-
Scopes enable you to select more granular permissions; so we would recommend turning off any scopes your app does not require. Single folder apps are rooted to a single folder, which is typically /Apps/(your app name). Moving to this structure means an app would no longer be able to see content outside this folder. This…
-
If a paper document is in the filesystem, it will return in API calls to files/list_folder. You may get its metadata by path or ID using files/get_metadata. Sharing metadata can be retrieved with sharing/get_file_metadata. 'Legacy' paper refers to those paper documents stored outside of the filesystem, retrieved with…
-
The tokenExpirationTimestamp is a unix timestamp. Parsing it should show ~4 hours until expiration, but expiration time is subject to change and should not be hardcoded. The SDK should be handling requesting an updated access token from a refresh token for you. Refresh tokens don't expire; though end users can revoke the…
-
The documentation for list_recieved_files does indicate that the owner display names are optional return values; they are not guaranteed to be fetched (https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_received_files).
-
We're still tracking this feature request, but no update yet.
-
I'm able to export the default getting started with Dropbox Paper file normally. I see you are using the Dropbox-API-Select-Admin header. Are you able to export the file using user auth?
-
We've recently updated our upload sessions to enable parallel upload of chunks. The team just updated the cli to incorporate this functionality after your report. Parallel uploads of chunks should substantially improve upload time and reduce error for these larger files. Would you be able to patch your cli with this and…
-
Generating a direct link for use in an <image href> isn't recommended. Instead, I'd recommend one of two options: * Use the Dropbox Embedder to display files. Instead of an image href, you'd use a Dropbox shared link (which you can create with the sharing API) as the input to a javascript snippet. * Use the thumbnail API…
-
I'm not suggesting forking the SDK is a sustainable solution; I'm just confirming if the lines you added worked 😀. I'll be tracking it as a bug in the SDK.
-
Just to confirm: * The property is true when you executed the HTTPS call (in the Dropbox API explorer or other), but the property is returning false in the SDK? * Including the line to LinkPermissionsDecoder resolved?
-
@"Ellen Y" the SDK should cover this case. Can you confirm the version of the SDK you are working with, and share code snippets that demonstrate the issue?
-
Dropbox paper documents from the filesystem can be embedded using the embedder - but note that not all accounts use paper in the filesystem (see here for more information).
-
Getting Dropbox files into Wordpress is certainly achievable with the API - there are several community built plugins to Wordpress that allow selection of Dropbox files, see here. If your goal is to get thumbnails of media files from Dropbox into WordPress, using get_thumbnail_batch using the output of list_folder may be…
-
When using the API, you'll need to use the Dropbox methods for browsing the filesystem, getting a path, and downloading it. (The API doesn't mount Dropbox to the local filesystem). See here for the Dropbox .NET SDK overview and here for examples.
-
get_temporary_link returns both a path_lower and a link. The former is a relative path in the Dropbox filesystem; the later is the link you're looking for. We do not recommend using get_temporary_link to render content. Temporary links do have associated bandwidth quota; exceeding it may result in blocking it. The best way…
-
File properties are now supported - but note they do not work with app folder permissions. If you'd like to leverage file properties, you'll need to build a full Dropbox app.
-
HTTP 500 errors are [undefined] server-side errors. Generally, they will be brief - re-trying at a later time should resolve. If you continue to experience 500 errors in a specific scenario, please elaborate with more detail on how to reproduce. See here for more about error handling.
-
The permanent_delete call will delete a file and its version history. Using this call requires using the Business API on a Dropbox team. There is otherwise no way to erase version history using the API.
-
[Cross-linking for reference: https://stackoverflow.com/questions/66144019/dropbox-400-error-while-trying-to-get-token-auth ] The Dropbox API will return a more specific error message in the response body; print the full response body to see the cause. Typically, an HTTP status 400 suggests that the body of the request is…