Comments
-
Dropbox does not offer a way to develop an app to be embedded or plugged in to the official Dropbox client/environment. The Dropbox API only allows you to build apps that can work with Dropbox by communicating with the Dropbox servers over HTTPS.
-
Making the call and catching that exception is fine, but if you want to check beforehand, you can call FilesUserRoutes.GetMetadataAsync for the folder itself and check the returned FolderMetadata.SharingInfo. (Or, you can list all of the shared folders on the account…
-
There are two ways you can approach this: * With the official Dropbox Python SDK, use the method sharing_get_shared_link_file to download the file content from a shared link. Or without the SDK, make the same call to /2/sharing/get_shared_link_file API endpoint itself directly. * Without using the API/SDK, modify the…
-
Hi Wayne, it sounds like this isn't about using the Dropbox API in particular, so I'm afraid I can't offer help with this. I just moved your post to the more general "Developers & API > General Discussion" forum section though in case any other developers there have any insight to share.
-
@"chrisgch" Thanks for the report. Unfortunately, similar to the original report on this thread, processing the OAuth app authorization flow in a web view, not the system browser itself, is not supported. Per the Dropbox /oauth2/authorize documentation, we do not support processing the OAuth app authorization flow in web…
-
What's in the response body for the 400? It should contain a more helpful error message.
-
To access the team space itself, you need to set your "root" to the team space using the "Dropbox-API-Path-Root" header, instead of specifying the namespace ID in the path value as you're trying to do in this code. You can find information setting "root" in "Dropbox-API-Path-Root" in the Namespace Guide. It looks like you…
-
In this latest snippet of code, I see you're using ShareFolderAsync. Since that call is to share a folder itself, it doesn't have ParentSharedFolderId like files in shared folders do. ShareFolderAsync returns Task<ShareFolderLaunch>. You should use CheckShareJobStatusAsync to check the status after calling…
-
@"TwinBlade" Are you processing this in a web view in an Electron app? If not, it sounds like this isn't necessarilly the same as the original issue in this thread. In that case, please open a new thread with the details of the issue you're seeing. You said "the method to exchange" "is problematic". Please elaborate on…
-
It doesn't have a successful return value, but it can raise a number of different errors. You should still check the response for an error. You can check the status code to determine success/failure at a high level, and check the response body for specific error information. With the incorrect code you had, for instance,…
-
[Cross-linking for reference: https://stackoverflow.com/questions/53052507/dropbox-receiving-folder-url-instead-of-file-url-using-list-shared-links ] The /2/sharing/list_shared_links documentation states: "If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to…
-
Thanks for the additional information! I see from your post that you're processing the OAuth app authorization flow in a web view, not the system browser itself. Per the Dropbox /oauth2/authorize documentation, we do not support processing the OAuth app authorization flow in web views. (This decision was made in order to…
-
I see from your code that you're only sending data with the append call. You can actually send data on any/all of the start, append, and finish calls, though it's not required. (Also, for small uploads like this, you don't need to use upload sessions at all, but I presume this is just for the sake of testing the code…
-
What do you mean when you say it "seems to be this line that returns the NULL"? The UploadSessionFinishAsync method either returns Task<FileMetadata>, or raises an exception. Please add extra logging or use a debugger to confirm what is actually being returned or raised. Anyway, UploadSessionFinishAsync is the correct way…
-
@"saritafurtado" I just tried creating and then deleting the newly created Paper document, using /2/paper/docs/create and /2/paper/docs/permanently_delete, respectively, in the API v2 Explorer, and it worked as expected. Can you double check that you are using the correct access token and doc ID for…
-
@"iOSMonika" No, this is still open with engineering, but I'm afraid I don't have a solution to offer.
-
The "grant_type" parameter value should be the actual string "authorization_code", not the code itself. You put your code there again instead of the string "authorization_code". You should only supply the code itself once, as the "code" parameter value. In the example in my previous comment, make sure you only replace the…
-
By "file summary", do you mean the file listing for your account, e.g., on https://www.dropbox.com/ or other Dropbox client? It sounds like you may be looking for the "app folder" for your new app. Note that app folders are only automatically created for apps with the "app folder" permission. Did you perhaps register your…
-
Can you provide more details on this issue? We don't officially support Electron, but the OAuth flow itself is expected to work in Chromium (given that we officially support Chrome). 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…
-
@"rpmgr" No, unfortunately we have not added an exception to allow .local. I'm not aware of plans to do so currently, but I'll follow up here if that changes.
-
Great! I'm glad to hear you were able to get that working. For information on the OAuth app authorization flow, I recommend reviewing the OAuth guide and the authorization documentation.
-
This is an OAuth endpoint, so it works a bit differently than the Dropbox API RPC, etc., endpoints. Here's an example of what that /oauth2/token call should look like: curl https://api.dropbox.com/1/oauth2/token \ -d code=<authorization code> \ -d grant_type=authorization_code \ -u <app key>:<app secret> Fill in your…
-
When you say the error was "instance not set to an instance of an object", did you actually mean "Object instance not set to an instance of an object"? (I.e., did you accidentally drop the first word from the error?) If so, that would seem to indicate that you have a null reference. If it's coming from the line you…
-
While we recommend using the official libraries, it's not required. You can always call the Dropbox API HTTPS endpoints directly if you prefer. The documentation covers the requirements for each endpoint, and includes an example of calling using curl, e.g., for /2/files/get_metadata. It looks like you're running in to a…
-
This is the expected behavior. The CreateFolderV2Async method creates a standard folder (private by default, unless it happens to be created inside some other shared folder), not a shared folder. If you intended to share an existing folder, or make a new shared folder, you should use ShareFolderAsync instead. Or, to get…
-
Webhook notifications will only be sent for accounts "connected" or "linked" to the app, so it is expected that you won't get any notifications with your described current set up. Typically, you would have users connect to your via the OAuth app authorization flow. If you only need to connect your own account though, you…
-
We don't have any official documentation on how long you should wait between checking on jobs like this. A few seconds, say 5s, seems reasonable. Whether to use a constant or variable period is also up to you. We don't provide firm guidance on this because how long any particular job takes depends on a few factors, which…
-
@"akashjeez" The original poster here indicated that the issue was that they were attempting to access the folder before the folder existed. In general, the 'not_found' error means that the specified path doesn't exist. If you're having trouble with the API, please open a new thread with the details of the issue.
-
@"praveendhanala" No, unfortunately I don't have an update on this.
-
Thanks for the additional information! I see from the 'response_type=code' that you're using the "code" flow, which means that the string you get back is an "authorization code", not an "access token". You need ot exchange the authorization code for an access token using /oauth2/token. (Alternatively, depending on your…