Comments
-
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 number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or…
-
Adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope. You can retrieve a new access token the same way as you would have originally, either…
-
Based on the URL of the Dropbox web site you shared, it seems like you're looking at your "team space". The API calls would be operating relative to your "member" folder by default, so you won't see the new files/folders in your team space by default. You'll need to look in your member folder instead. Your member folder is…
-
There haven't been any recent changes to the API that should have caused uploads to stop working. Can you print out and share the response you get from the API? If it's not an error, it should contain the metadata of the uploaded file or created folder. Also, how/where are you checking for the new file/folder? If you're…
-
@"zsiwik" As Здравко said, you get an app key and secret for the Dropbox API by registering an app here. You can find the developer terms here.
-
@"mikesam" My first post in this thread was from several years ago, so some things may have changed since then. You can find the latest resources for the .NET SDK here. If something isn't working as expected, please share the details, such as the steps you're following and the code you're running, so we can take a look.
-
@"Omri1984" It looks like our comments just crossed. Please refer to my previous comment for information. If you configure that as described there, you do not need to call RefreshAccessToken yourself.
-
@"mikesam" As Здравко mentioned, it's not recommended to distribute any access tokens for your own account to other users. You can technically now use scopes to restrict an app/access token to only have read and not write access, but it still would be a bad security practice to distribute your access token(s). You may be…
-
@"Omri1984" Здравко is correct; the SDK can handle the refresh process for you automatically, but you need to supply the refresh token, and app key, and if not using PKCE, the app secret. In your code, you're only supplying an access token. You can find an example of getting and using a refresh token in the OauthBasic…
-
@"Melisek" For the 400 error, please share the full error message as well as the relevant code snippet.
-
@"Melisek" That indicates that the redirect URI you're supplying when exchanging the authorization code doesn't match the one used to retrieve it originally. Make sure you're supplying the same redirectUri value to both GetAuthorizeUri and ProcessCodeFlowAsync.
-
@"Melisek" An 'invalid_grant' error typically indicates an misconfiguration of the parameters for the OAuth flow, such as an incorrect authorization code, mismatched redirect URI, etc. You should be able to get a more specific error message like this: try{ // ... your ProcessCodeFlowAsync call ...}catch (OAuth2Exception…
-
@"donaldp" Unfortunately it's not clear why that is occurring for you. I just tried and I am able to catch the expired_access_token Exception from a GetCurrentAccountAsync call when made with a DropboxClient with an expired short-lived access token and no refresh token. I can't offer much insight with .NET or C# itself,…
-
Images are included in the exported HTML, via an <img> element.
-
@"Melisek" Thanks for pointing that out! I'll ask the team to fix that up.
-
The redirect URI you use (if any) is up to you as the developer. It is intended to be a URI you control, but you can choose whatever is appropriate and functional for your scenario. It's not clear how you're accessing the authorization code on the redirect URI if you don't control the redirect URI though, since that URI is…
-
Thanks for following up. I'm glad to hear you got this working, and thanks for the feedback!
-
A 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That…
-
I can't say exactly what may have changed recently. The need to encode these values in HTTP headers has existed for a long time, so perhaps the path value itself was changed or the client network stack changed to expose this issue. The issue was not immediately apparent based on your initial report, but I was sure to refer…
-
I was referring to using something like JSONSerialization.data to build the JSON string from a dictionary for you, like in our example. Regarding the remotePath value, while that may be a constant in your code (though you did not share where that is defined), is it possible you've changed what you assign to it in your code…
-
For reference, the documentation for /2/files/upload includes a basic example of how you might call curl in a shell to perform an upload. The API Explorer can also be useful for prototyping and testing calls. (Click "Show Code" to see an example of what the code would look like.) Anyway, the /2/files/upload endpoint is a…
-
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 steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s) * the full text of any error or unexpected output
-
@"donaldp" Здравко is correct, in order to receive a refresh token, you need to specify "offline" access. With the .NET SDK, you would do so in your GetAuthorizeUri call, by setting tokenAccessType: TokenAccessType.Offline, like in the example here. It looks like that's missing in the GetAuthorizeUri call in the latest…
-
@"ingconti" Thanks for the feedback! While we're not able to provide support for using third party platforms, we're happy to help however we can with the Dropbox API itself. If you have any specific question or issue regarding the Dropbox API, please feel free to share the details so we can take a look.
-
Yes, you would use the export functionality to download any items with files with exportInfo.exportAs set, such as Google docs. The Dropbox API unfortunately doesn't offer the ability to list or read comments on Dropbox Paper docs, but I'll pass this along as a feature request. There isn't a separate call for downloading…
-
Can you clarify where/how the initial value of previousDeltaLink is being set though? In this code, it only seems to be set after each ListFolderContinueAsync call. I don't see where you're setting it from the initial call. It looks like you are correctly setting the recursive parameter to true on the ListFolderAsync call,…
-
Can you share the steps/code necessary to reproduce the issue so we can look into it? It may also be helpful if you use the "-v" flag on curl to enable verbose output and share the output showing the issue.
-
Thanks for following up. Just to clarify, do you still need help on the Dropbox API side of things? (If so, please show us what currently isn't working.)
-
@"Melisek" Thanks for following up. As Здравко said, please make sure the environment has a default web browser set. Otherwise, it looks like you may be using Windows Forms, so please refer to this post for options, as it appears you may need to use something other than System.Diagnostics.Process.Start in that environment.
-
It looks like the sharing_list_shared_links error should have been a transient issue. Does that still occur for you if you retry that?