Comments
-
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…
-
No, it is not possible to get a refresh token by using an expired short-lived access token. You can only get a refresh token by processing the OAuth app authorization flow and requesting "offline" access. This only needs to be done once per account though, as the refresh token itself does not expire and can be re-used…
-
An OAuth 2 redirect URI is a URI that the developer wants the user sent back to after authorizing the app, however this is optional. You do not need to use a redirect URI if you can't or don't want to. When you don't use a redirect URI, the authorization code is instead present in the UI directly to be copied/pasted back…
-
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. Apps can still get long-term access by requesting "offline" access…
-
@"ozbcoz" Thanks, that's helpful. When updating the scopes for your app, instead of then switching to another tab such as "Branding" and clicking "Save changes" there, please stay on the "Permissions" tab and click on the "Submit" button in the bar at the bottom of that page. There's currently an issue that makes that…
-
@"ozbcoz" Thanks! You can use a Dropbox shared link to share the video file. (By the way, feel free to open an API ticket here with it instead if you'd prefer to share privately for whatever reason.)
-
@"ozbcoz" Would you be able to share a short recording showing the issue you're seeing? I just tried this myself with the latest version of Firefox, and while the display of the buttons is currently broken making them hard to see, clicking the buttons does still work for me. Thanks in advance!
-
@"BartLors" As Здравко noted, the Dropbox Saver is way for end-users to save files to their own accounts, not a way for end-users to upload files to your account. I'll pass this along as a feature request for a component like that, I can't promise if or when that might be implemented. (And for reference, using the Dropbox…
-
You can find the release history for SwiftyDropbox here. There is a "Fixes for use in application extensions" in the latest release, v9.2.0, which might be relevant. Please try updating to that. If something still isn't working as expected with that, please share the specific steps/code to reproduce the issue so we can…
-
@"Tshaniii" Yes, as Samuel-088 said, you can use the Dropbox SDK to download a file, and then you can use that downloaded file data however you need. For reference, to download a file using the Dropbox JavaScript SDK in Node, you would use the filesDownload method.
-
@"bobbotron" I don't have news or a timeline on this right now. I'll follow up here once I have any updates.
-
The Dropbox Embedder doesn't offer an option for that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"athithan" We've deployed an update with support for "Dropbox-API-Select-Admin" on /2/sharing/list_file_members/continue. Give that a try and let me know if that works for you.
-
I can't offer help with React itself, as that's not made by Dropbox, so I suggest referring to the React documentation/support resources for help with that.
-
Thanks for clarifying. It sounds like the issue is more around how async/await itself works in JavaScript. I can only really help with the Dropbox API/SDK in particular, so I recommend referring to a guide/documentation for async/await in JavaScript. That said, it seems like "await response.result.entries" may not be what…
-
For information on how apps can use the OAuth app authorization flow to have end-users authorize an app to access their accounts, please read the OAuth Guide. To see how to use the JavaScript SDK for this, check out the examples included with the SDK.
-
If you're using Node.js and need to interact with the Dropbox API, we recommend using the official Dropbox API v2 JavaScript SDK, which supports Node.js. You can find sample code for that here. Note though that you should not be sharing access tokens with other users. The API was designed with the intention that each user…
-
As you found, starting from files_list_folder(path='') will only list the contents of that particular member's folder; if there are other team folders that the member doesn't have mounted in their account, those team folders won't be found that way. You can list all team folders for a team using…
-
@"johnvu93" The Dropbox API doesn't offer a way to copy a folder from a shared link into a connected Dropbox account via the API like the "Copy to Dropbox" feature of the shared link page, but I'll pass this along as a feature request. I can't promise if/when that might be implemented though. (The Dropbox API does offer…