Comments
-
I don't believe the .NET SDK exposes the raw JSON. The SDKs are built to offer native interfaces, where you don't need to deal directly with JSON, etc. I'll send this along as a feature request though. If you want the actual JSON, you can make the HTTPS request manually. For example, for ListFolderAsync, that would be a…
-
I'm glad to hear you were able to make progress on this. For reference, you mentioned you are using the user endpoints, but are you using a "Dropbox Business API" app registration? If so, how are you constructing the API client object you're using? Also, is your team signed up for any beta features? That can affect the…
-
It looks like there a few small things to fix in your code: - the parameters should be passed in one dict in a single argument - you do need the nested 'settings' key - you need to provide the date in the "%Y-%m-%dT%H:%M:%SZ" format So, it should look like this: dbx.sharingCreateSharedLinkWithSettings({path:…
-
Are you using include_media_info=true when first calling /2/files/list_folder? If so, there can be a delay like this for some files while the media information is prepared.
-
If the PathLower is missing, that should indicate that the folder isn't "mounted" in that user's account. (E.g., they have access to it, but haven't added it to their account.) Are you sure you're looking at the entry for the actual team folder you're looking for? Some accounts may have old/unmounted shared/team folders.…
-
Thanks. That appears to the be headers for a web request though (to your own app?) and not for the API call itself.
-
Can you print out the request, or at least the token, to see what's getting sent by this code?
-
The /2/files/download endpoint just returns the original file data. If the file is a PDF file, it will return the original PDF data. The /2/files/get_preview endpoint generates a preview of the requested file, and does not return the original data. Per the documentation, it will generate either a preview in PDF or HTML…
-
Unfortunately, as that's related to using the local filesystem, via a third party library, and not the Dropbox API itself, I'm afraid I can't offer insight there.
-
That library is made by a third party, so we can't provide support for it, and the error here doesn't seem to be coming from the Dropbox API itself. You may want to open an issue for the library instead. For reference though, that error seems to come from this line. That indicates an issue openining the local destination…
-
That indicates that something is wrong with the API request when made from your server. You'll need to inspect the request being made on your server. Since you're getting a 401, it seems likely that there is an issue with the access token. More generally, if you can print out the actual HTTP request that would likely be…
-
You can get the ID for a file or folder from the Metadata object for the file or folder, e.g., as returned by /2/files/get_metadata or /2/files/list_folder. If you want to download a file though, you should use /2/files/download (not /2/file_requests/get). For /2/files/download you can supply either the path or ID of the…
-
Thanks! I just tried this out, and it's working for me. Are you sure you're passing in a valid access token? I recommend printing out the $token just before you set the headers. It should be a 64 character string consisting of letters, numbers, and some symbols.
-
Yes, the Dropbox API offers the ability to get information about shared links. You can use /2/sharing/get_shared_link_metadata to get the information about the link itself. You can use /2/sharing/get_shared_link_file to get file data that the link refers to. You can use /2/files/list_folder to list the contents of the…
-
Can you share your code and the full error response? Thanks in advance!
-
I don't believe there is a way to find out the size ahead of time unfortunately.
-
The zip_batch endpoint isn't part of the public API, so I can't offer information on it or recommend trying to use it, as it is subject to change without warning.
-
That's correct, my sample was a link for a file, so it can offer a Content-Length. Your example is a link for a folder, which is compressed on the fly, so the Content-Length isn't available.
-
This error is based on the interaction between certain versions of both requests and urllib3. I recommend uninstalling both and reinstalling requests and its dependencies in order to get compatible versions.
-
How big is the file you're trying to upload when this occurs? The updown sample doesn't use upload sessions, so it can only handle small files. For example, the 1 GB file you mentioned earlier would be too big. If you need it to support large files, you'll need to update it to use upload sessions. Otherwise, this might…
-
The api.dropboxapi.com host is currently being served with a valid certificate, so it's not clear why your client isn't trusting it. (Is there any security software, e.g., firewall, or a proxy that may be intefering?) In any case, the /2/files/list_folder endpoint does need to be called on the Dropbox API servers, for…
-
[Cross-linking for reference: https://stackoverflow.com/questions/47588904/how-can-i-get-users-of-dropbox-under-my-app-using-c ] Once you're ready to have users connect to your app, you should distribute your app to them via whatever means you wish. For example, an application store or marketplace. Your app should…
-
I don't know if it offers the exact logic you need, but this example app may be helpful: https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py
-
This path/conflict/folder error indicates that the upload failed because there is already a folder at the path where you're trying to upload the file (specified by `dest_path` in your code): https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.WriteConflictError If you're trying to upload the…
-
The Dropbox API doesn't offer the ability to download entire folders like this, but I'll be sure to pass this along as a feature request. (The Dropbox web site uses a different, internal interface for this.)
-
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 of the platform and SDK/library you are using. - the steps to reproduce the issue, including the rest of the relevant code snippet(s). - the full text of the error/any…
-
The Dropbox web site is always being updated, but it sounds like the issue here is that the browser being used is not officially supported by the dropbox.com web site, which includes the OAuth app authorization page. Information on the officially supported browsers can be found here:…
-
Thanks for following up. I'm glad to hear you got this working. Your "clientIdentifier" should identify your app and the current version number of your app. This is used in the User-Agent header when making API calls, which can be useful to identify and when debugging your app. You can find more information on that here:…
-
Good news, we've finished rolling this functionality out to the non-alpha endpoints, and also actually added it to list_folder as well. The updated ListFolder and GetMetadata arguments are now available in the latest version of the .NET SDK:…
-
Thanks! Based on that stack trace, it looks like this is actually occurring in getCurrentAccount. Can you confirm you're running on Google App Engine, and can you share your code for constructing your DbxRequestConfig and calling getCurrentAccount?