Comments
-
This thread is old, and the specific cause here may depend on your particular setup. If you're seeing this, please feel free to open a new thread with details so we can help.
-
[Cross-linking for reference: https://stackoverflow.com/questions/47726878/can-we-get-list-of-files-folders-from-dropboxs-sharing-folder-using-python ] Yes, the sharing_* methods offer access to sharing information. For example, to list the shared folders the user has access to, you can use sharing_list_folders and…
-
The "data" you pass up needs to be valid JSON, otherwise the API call will fail with the "could not decode input as JSON" error. Some of your values are missing pieces such as the opening { or a ,. Also, make sure you use the standard " character, and escape it with a \. So, here are some valid examples based on what you…
-
Apologies for the bother, but I'm not sure I follow. Could you open a ticket with the relevant app and account ID here so I can check on your configuration so I can advise properly? https://www.dropbox.com/developers/contact Thanks in advance!
-
I don't have a sample for VBA unfortunately. If you can't use an SDK/library, I recommend translating the curl examples in the documentation for whatever HTTP client you can use in your app.
-
The API does offer the ability to create and retrieve shared links for files and folders, using the endpoints I linked to in my previous reply. Please try using those and let us know if you run in to any issues.
-
I'm not sure I follow. Were you able to inspect the actual API requests like I suggested?
-
Unfortunately this screenshot doesn't offer much more information, so I can't say what the issue is. For example, I don't see what the "UploadString" method is doing. If you can share the 'X-Dropbox-Request-Id' response header value at least, I may be able to investigate based on that.
-
We don't have any resources for VBA in particular unfortunately. In general, we recommend developers use one of the official SDKs, if possible, or if not, one of the community SDKs, or call the HTTPS endpoints directly. For example, to create a shared link for any file or folder, you would use the…
-
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…