Comments
-
@"Goldmine" In addition to the information Здравко provided, you can find more resources on this at the following links: * https://developers.dropbox.com/oauth-guide * https://www.dropbox.com/developers/documentation/http/documentation#authorization * https://dropbox.tech/developers/using-oauth-2-0-with-offline-access
-
It looks like the issue here is that the app you're attempting to authorize has team scopes, but the account you're signing in to is not on a team, and so cannot connect an app with team scopes. Accordingly, you're being prompted to sign in again with a team account in order to connect the app. Normally, when signing in…
-
There isn't a separate public bug tracker for this. I'll follow up here once I have an update on that issue.
-
You can use the /2/files/list_folder and /2/files/list_folder/continue endpoints to list the contents of a shared links for folders. That's files_list_folder and files_list_folder_continue in the official Dropbox Python SDK. You can also use the API v2 Explorer to test/prototype these calls. You would start by setting…
-
Thanks for the report. We're looking into it. I'll reply here once I have an update on this.
-
Thanks for the report. We're looking into it and I'll follow up here once I have an update.
-
It looks like this is due to the same issue in your earlier thread, so I'll follow up with you there.
-
Whether or not you need to revoke the edit link will depend on your use case; it's not required for creating a view link. To revoke a link you'd use /2/sharing/revoke_shared_link. Whether or not you do revoke the edit link, you can create the view link using /2/sharing/create_shared_link_with_settings.
-
@"raiam" As Здравко said, you'd need to be able to save cursors in order to keep track of changes over time. If you're calling filesListFolderGetLatestCursor after the webhook notification, that cursor will be for the point in time after the changes occurred, so you can't use that cursor to see those changes. To start…
-
@"raiam" I see you also opened a new thread for this, so we'll follow up with you there.
-
@"CHBA" Здравко is correct; Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. This is not related to the plan (i.e.,…
-
@"kostas99" As Здравко said, if the Dropbox API call failed, the Dropbox API would reply with an error response. If the network connection itself failed, your network client should return an error indicating the issue. Please print out the API response or client error for more information. You may need to refer to your…
-
If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user…
-
No, the Dropbox API doesn't offer this kind of functionality, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"priyalcoc1" Здравко is correct; you would request "offline" access to get and use a refresh token for this. Please refer to the following resources for more information: * https://developers.dropbox.com/oauth-guide * https://www.dropbox.com/developers/documentation/http/documentation#authorization *…
-
It's still not clear where the "TypeError: res.buffer is not a function" path is coming from; that doesn't reproduce for me when I run this, so it may be something specific to your environment. I recommend referring to your platform's documentation. As for the "Error in call to API function "files/list_folder/continue":…
-
The Dropbox API doesn't support changing the access level on an existing link like this, but it looks like the API isn't properly reporting that back in the /2/sharing/modify_shared_link_settings response. I've asked the team to fix that up. That being the case, if you need a view link instead of an edit link, you'll need…
-
@"Tshaniii" Calling filesListFolder alone is not guaranteed to give you all of the results. You need to use filesListFolderContinue as well. Check out the documentation for more information. You can set FilesListFolderArg.recursive to true when calling filesListFolder if you want to list nested entries too. As for the…
-
Thanks for the post. We'll look into this and get back to you.
-
@"tszikszai" Once you have a client constructed with a refresh token, you can use it to upload a file the same was as before, by calling files_upload. Here's some simplified code from the example, combined with some of your uploading code, as an example: import dropboxAPP_KEY = "APPKEYEHERE"APP_SECRET =…
-
@"tszikszai" You need to supply the refresh token to the dropbox.Dropbox constructor so it can use it to perform the refresh automatically when needed. Please refer to the example of how to construct that with a refresh token here.
-
@"Tshaniii" Здравко is correct, that error is indicating that you didn't provide a valid path format. It's best to take the path value from another API call result, e.g., an entry's 'path_lower' value, but if you write the path value manually it would be of the form '/Regulatory'. When listing a folder like that, it will…
-
An 'expired_access_token' error indicates that the call failed because it was made with a short-lived access token that is no longer valid because it has expired. You'd need to get a new short-lived access token when that occurs. Note that Dropbox is no longer offering the option for creating new long-lived access tokens.…
-
@"shashank-cognitica" Здравко is correct; refresh tokens don't expire automatically or due to not using the refresh token. They can be revoked on demand though, or become invalid if the account itself is disabled, etc. You can find more information on refresh tokens in the following resources: *…
-
@"Tshaniii" Здравко is correct; when using an access token for an app with "app folder" access, paths in your API calls are automatically interpreted relative to the app folder itself, so you shouldn't include the path to the app folder in the path value you supply. And as Здравко said, once you have the data you can use…
-
@"tszikszai" I see Здравко helpfully provided some sample code. For additional reference, you can find the documentation for the OAuth2FlowNoRedirectResult object here, which is returned by OAuth2FlowNoRedirectResult. There's also an example of how to get the refresh token in particular out of that object and pass it into…
-
If you're still getting a 'missing_scope' error, that means that the particular access token you're using to call that endpoint is not authorized with the scope needed for that particular endpoint. Note that enabling the scope on the app itself does not grant that scope to preexisting access tokens (or refresh tokens).…
-
Thanks for following up. That's correct, the Embedder doesn't offer options for that, but this has been sent along as a feature request.
-
Dropbox doesn't offer official support or documentation for options for embedding files directly like that, and so any undocumented functionality like that is subject to change or break without notice. If you want to embed a file from Dropbox on a third party site, you should use the functionality documented for the…
-
@"Tshaniii" Also, since you're using the Dropbox JavaScript SDK, you shouldn't manage those URL parameters directly anyway. You would use the getAuthenticationUrl method to build your authorization URL. And you shouldn't be passing the /oauth2/authorize authorization URL to getAccessTokenFromCode. That method takes your…